From cfb58eb14572149a6cc26563d96d23fb67a03ffd Mon Sep 17 00:00:00 2001 From: chris meyers Date: Wed, 10 Oct 2018 12:32:27 -0400 Subject: [PATCH] fix issue with ldap queries containing unicode --- awx/sso/ldap_group_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/sso/ldap_group_types.py b/awx/sso/ldap_group_types.py index b155ab99c823..69c655e04094 100644 --- a/awx/sso/ldap_group_types.py +++ b/awx/sso/ldap_group_types.py @@ -42,7 +42,7 @@ def user_groups(self, ldap_user, group_search): ) 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