summaryrefslogtreecommitdiffstats
path: root/ipa-python/ipaclient.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-10-30 15:07:02 -0400
committerRob Crittenden <rcritten@redhat.com>2007-10-30 15:07:02 -0400
commit1d6e88565c48ee0799ac1df58d4a56444388f0c8 (patch)
tree1b8dfc91d7688a3968e499072c6e7ad80464fddd /ipa-python/ipaclient.py
parent402274af4bfbefda55d1968bed61b563f8af8559 (diff)
downloadfreeipa-1d6e88565c48ee0799ac1df58d4a56444388f0c8.tar.gz
freeipa-1d6e88565c48ee0799ac1df58d4a56444388f0c8.tar.xz
freeipa-1d6e88565c48ee0799ac1df58d4a56444388f0c8.zip
Add memberOf API call to the XML-RPC interface
Make find-groups use memberOf to have a prettier dispaly of members
Diffstat (limited to 'ipa-python/ipaclient.py')
-rw-r--r--ipa-python/ipaclient.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py
index 9464ee77e..b0dd8ee6e 100644
--- a/ipa-python/ipaclient.py
+++ b/ipa-python/ipaclient.py
@@ -316,3 +316,11 @@ class IPAClient:
"""Convert a list of LDAP attributes into a more readable form."""
return self.transport.attrs_to_labels(attrs)
+
+ def memberOf(self, groupdn, attr_list):
+ """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)
+
+