[Davical-dev] Patch for treating usernames case insensitive
Matthias Mohr
Matthias at Mohrenclan.de
Fri Oct 30 03:34:55 NZDT 2009
Hi Andrew,
as promised a while ago, I'll reinvestigate my changes and split them
in several smaller parts.
Here's one which adds a new configuration parameter
"$c->usernames_case_insensitive"
If set to true, all username handling will be treated case insensitive;
they'll still be stored in the case which the user enters (or the external
authorisation hook provides), but the comparison or search or other access
will not distinguish between cases.
It's tested here and works with LDAP authorisation - but I'm not absolutely
sure if there are other places which I missed (e.g. in drivers_squid_pam)!?
Though one issue exists:
Currently it's not possible to access the configuration array in libawl,
so there's one place where the case insensitive comparison is hardcoded
(I added a @TODO at that place)...
I hope you'll find the patch(es) useful!
with regards,
Matthias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: awl-0.38_ci_users.diff
URL: <http://lists.morphoss.com/pipermail/davical-dev/attachments/20091029/77439da3/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: davical-0.9.7.6_ci_users.diff
URL: <http://lists.morphoss.com/pipermail/davical-dev/attachments/20091029/77439da3/attachment.asc>
More information about the Davical-dev
mailing list