summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-25 00:09:16 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-25 00:09:16 (GMT)
commit53dcfaa732680662b23f3a1181db839d42f3bb68 (patch)
tree2d7029e96b0cbe8be3e04c771978233fbb000119
parent1c847cac9b34765ed6024c2897a084cdba8bcac2 (diff)
downloadauthentic2-auth-kerberos-53dcfaa732680662b23f3a1181db839d42f3bb68.zip
authentic2-auth-kerberos-53dcfaa732680662b23f3a1181db839d42f3bb68.tar.gz
authentic2-auth-kerberos-53dcfaa732680662b23f3a1181db839d42f3bb68.tar.bz2
backend: normalize ldap results
-rw-r--r--src/authentic2_auth_kerberos/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authentic2_auth_kerberos/backends.py b/src/authentic2_auth_kerberos/backends.py
index 937121e..c5eac8e 100644
--- a/src/authentic2_auth_kerberos/backends.py
+++ b/src/authentic2_auth_kerberos/backends.py
@@ -89,7 +89,7 @@ class A2LdapKerberosBackend(LDAPBackend):
try:
results = conn.search_s(user_basedn, ldap.SCOPE_SUBTREE, principal_filter,
self.get_ldap_attributes_names(block))
- results = [(dn, attrs) for dn, attrs in results if dn]
+ results = [(dn, self.normalize_ldap_results(attrs)) for dn, attrs in results if dn]
if not results and block['replicas']:
break
if len(results) > 1: