Skip to content

Commit

Permalink
Merge pull request ansible#2035 from jijojv/devel
Browse files Browse the repository at this point in the history
ldap attributes filter in user_groups()
  • Loading branch information
chrismeyersfsu authored Jul 18, 2018
2 parents 8f7931e + 919a614 commit 71fcd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/sso/ldap_group_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def user_groups(self, ldap_user, group_search):
)

search = group_search.search_with_additional_term_string(filterstr)
search.attrlist = [self.name_attr]
groups = search.execute(ldap_user.connection)
except (KeyError, IndexError):
pass
Expand Down Expand Up @@ -72,4 +73,3 @@ def is_member(self, ldap_user, group_dn):
is_member = False

return is_member

0 comments on commit 71fcd5f

Please sign in to comment.