backends: use normalize_ldap_results() on the result of search_s()

This commit is contained in:
Benjamin Dauvergne 2021-02-08 16:05:27 +01:00
parent efddaf617a
commit d351e0c1c0
1 changed files with 1 additions and 1 deletions

View File

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