Load uid from LDAP to fix case-insensitive username authentication

master
informatic 2018-04-18 14:41:19 +02:00
parent 722c601936
commit 76cbbe83b2
1 changed files with 1 additions and 0 deletions

View File

@ -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]