##// END OF EJS Templates
Fetch entry after successful bind for being able to read its attributes.
"Lorenzo M. Catucci" -
r1287:28060f0a beta
parent child Browse files
Show More
@@ -105,9 +105,10 b' class AuthLdap(object):'
105 105 if not lobjects:
106 106 raise ldap.NO_SUCH_OBJECT()
107 107
108 for (dn, attrs) in lobjects:
108 for (dn, _attrs) in lobjects:
109 109 try:
110 110 server.simple_bind_s(dn, password)
111 attrs = server.search_ext_s(dn, ldap.SCOPE_BASE, '(objectClass=*)')[0][1]
111 112 break
112 113
113 114 except ldap.INVALID_CREDENTIALS, e:
General Comments 0
You need to be logged in to leave comments. Login now