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

Contents of /puppet/modules/transifex/files/custom_backend.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 632 - (show annotations) (download) (as text)
Wed Dec 15 21:24:26 2010 UTC (11 years, 9 months ago) by misc
File MIME type: text/x-python
File size: 263 byte(s)
allow to use email on log on transifex
1
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.28