Load uid from LDAP to fix case-insensitive username authentication
parent
722c601936
commit
76cbbe83b2
1
auth.py
1
auth.py
|
@ -256,6 +256,7 @@ class LDAPUserProxy(object):
|
|||
raise Exception('No such username.')
|
||||
dn, data = res[0]
|
||||
|
||||
self.username = data.get('uid', [None,])[0]
|
||||
self.gecos = data.get('gecos', [None, ])[0]
|
||||
self.mifare_hashes = data.get('mifareIDHash', [])
|
||||
self.phone = data.get('mobile', [None, ])[0]
|
||||
|
|
Loading…
Reference in New Issue