Fixed AD-LDAP decode problem

This commit is contained in:
sirferl 2020-11-25 14:06:26 +01:00
parent 9949f9914e
commit e9f7860816
1 changed files with 1 additions and 1 deletions

View File

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