Have the GUI use memberOf() instead of looping through the member DNs

Fix a bug in the local transport version of memberOf()
This commit is contained in:
Rob Crittenden committed 2007-10-31 10:08:16 -04:00
1 parent 1d6e88565c
commit 303d5ebad9
2 files changed
+11 -24

No files matched your search

+8 -1
View File
@@ -321,6 +321,13 @@ class IPAClient:
"""Do a memberOf search of groupdn and return the attributes in
attr_list (an empty list returns everything)."""
return self.transport.memberOf(groupdn, attr_list)
results = self.transport.memberOf(groupdn, attr_list)
counter = results[0]
entries = [counter]
for e in results[1:]:
if e is not None:
entries.append(user.User(e))
return entries