Parent Directory | Revision Log
finish the move to django_application common class
1 | misc | 632 | |
2 | from django_auth_ldap.backend import LDAPBackend,_LDAPUser | ||
3 | |||
4 | class ForceUidLDAPBackend(LDAPBackend): | ||
5 | def ldap_to_django_username(self, username): | ||
6 | # force uid if someone give a email | ||
7 | return _LDAPUser(self, username=username).attrs['uid'][0] | ||
8 | |||
9 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |