mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Merge pull request #2035 from jijojv/devel
ldap attributes filter in user_groups()
This commit is contained in:
@@ -42,6 +42,7 @@ class PosixUIDGroupType(LDAPGroupType):
|
|||||||
)
|
)
|
||||||
|
|
||||||
search = group_search.search_with_additional_term_string(filterstr)
|
search = group_search.search_with_additional_term_string(filterstr)
|
||||||
|
search.attrlist = [self.name_attr]
|
||||||
groups = search.execute(ldap_user.connection)
|
groups = search.execute(ldap_user.connection)
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
pass
|
pass
|
||||||
@@ -72,4 +73,3 @@ class PosixUIDGroupType(LDAPGroupType):
|
|||||||
is_member = False
|
is_member = False
|
||||||
|
|
||||||
return is_member
|
return is_member
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user