backends: use normalize_ldap_results() on the result of search_s()
This commit is contained in:
parent
efddaf617a
commit
d351e0c1c0
|
@ -93,7 +93,7 @@ class A2LdapKerberosBackend(LDAPBackend):
|
|||
try:
|
||||
results = conn.search_s(user_basedn, ldap.SCOPE_SUBTREE, principal_filter,
|
||||
self.get_ldap_attributes_names(block))
|
||||
results = [(dn, self.normalize_ldap_results(attrs)) for dn, attrs in results if dn]
|
||||
results = self.normalize_ldap_results(results)
|
||||
if not results and block['replicas']:
|
||||
break
|
||||
if len(results) > 1:
|
||||
|
|
Loading…
Reference in New Issue