/[adm]/puppet/modules/django_application/files/custom_backend.py
ViewVC logotype

Annotation of /puppet/modules/django_application/files/custom_backend.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1182 - (hide annotations) (download) (as text)
Wed Feb 23 16:47:12 2011 UTC (13 years, 1 month ago) by misc
File MIME type: text/x-python
File size: 263 byte(s)
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