Merge pull request #3269 from sirferl/AD-problem
LDAP: error decoding CN when using Active Directory
This commit is contained in:
commit
7b5d6d3db1
|
@ -211,7 +211,7 @@ class LdapPrincipal:
|
|||
for group in lgroups:
|
||||
(dn, values) = group
|
||||
if type(values) == dict:
|
||||
self.ldap_groups.append(values["cn"][0].decode("ascii"))
|
||||
self.ldap_groups.append(values["cn"][0].decode("utf-8"))
|
||||
else:
|
||||
lgroups = self.ldap_client.search_s(
|
||||
self.ldap_base_dn, ldap.SCOPE_SUBTREE, ldap_filter, self.ldap_attrs
|
||||
|
|
Loading…
Reference in New Issue