diff --git a/auth.py b/auth.py index 2982f04..dd18dac 100644 --- a/auth.py +++ b/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]