Merge pull request #21701 from rvstaveren/fix_ldap_group_handling_2014_7

Fix ldap group handling for 2014.7
This commit is contained in:
Thomas S Hatch 2015-03-16 17:30:44 -06:00
commit 493a97c276

View File

@ -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