mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #21701 from rvstaveren/fix_ldap_group_handling_2014_7
Fix ldap group handling for 2014.7
This commit is contained in:
commit
493a97c276
@ -227,7 +227,7 @@ def groups(username, **kwargs):
|
||||
else:
|
||||
return False
|
||||
for _, entry in search_results:
|
||||
if entry['memberUid'][0] == username:
|
||||
if username in entry['memberUid']:
|
||||
group_list.append(entry['cn'][0])
|
||||
log.debug('User {0} is a member of groups: {1}'.format(username, group_list))
|
||||
return group_list
|
||||
|
Loading…
Reference in New Issue
Block a user