diff options
author | Rob Crittenden <rcritten@redhat.com> | 2007-10-31 10:08:16 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2007-10-31 10:08:16 -0400 |
commit | 303d5ebad9cea79c1e67e1be73ab629846b8121a (patch) | |
tree | aa59f523ad13aa6d84128a1428e6e6a99c18afd1 /ipa-python | |
parent | 1d6e88565c48ee0799ac1df58d4a56444388f0c8 (diff) | |
download | freeipa-303d5ebad9cea79c1e67e1be73ab629846b8121a.tar.gz freeipa-303d5ebad9cea79c1e67e1be73ab629846b8121a.tar.xz freeipa-303d5ebad9cea79c1e67e1be73ab629846b8121a.zip |
Have the GUI use memberOf() instead of looping through the member DNs
Fix a bug in the local transport version of memberOf()
Diffstat (limited to 'ipa-python')
-rw-r--r-- | ipa-python/ipaclient.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py index b0dd8ee6e..9d0bf9b28 100644 --- a/ipa-python/ipaclient.py +++ b/ipa-python/ipaclient.py @@ -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 |