1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

fix issue with ldap queries containing unicode

This commit is contained in:
chris meyers 2018-10-10 12:32:27 -04:00
parent 3aa07baf26
commit cfb58eb145

View File

@ -42,7 +42,7 @@ class PosixUIDGroupType(LDAPGroupType):
)
search = group_search.search_with_additional_term_string(filterstr)
search.attrlist = [self.name_attr]
search.attrlist = [str(self.name_attr)]
groups = search.execute(ldap_user.connection)
except (KeyError, IndexError):
pass