summaryrefslogtreecommitdiffstats
path: root/ipa-python
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-03-27 09:54:41 -0400
committerRob Crittenden <rcritten@redhat.com>2008-03-27 09:54:41 -0400
commitbde9959091d263402c2016c183f8617dea488cc0 (patch)
tree581f055ebf18201d879487af3d58b5c7a4403387 /ipa-python
parent07059a5ef25143b0f0a99f27d6039276a4f557f4 (diff)
downloadfreeipa-bde9959091d263402c2016c183f8617dea488cc0.tar.gz
freeipa-bde9959091d263402c2016c183f8617dea488cc0.tar.xz
freeipa-bde9959091d263402c2016c183f8617dea488cc0.zip
When getting members let user indicate what type of member they want.
The memberOf attribute includes members that are directly in the group via the "member" attribute and those that are included as a result of being in a group that is in the group. The UI needs to be able to distinguish between the two. 438706
Diffstat (limited to 'ipa-python')
-rw-r--r--ipa-python/ipaclient.py4
-rw-r--r--ipa-python/rpcclient.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py
index b685be38c..4fc836953 100644
--- a/ipa-python/ipaclient.py
+++ b/ipa-python/ipaclient.py
@@ -326,11 +326,11 @@ class IPAClient:
return self.transport.get_all_attrs()
- def group_members(self, groupdn, attr_list):
+ def group_members(self, groupdn, attr_list, membertype):
"""Do a memberOf search of groupdn and return the attributes in
attr_list (an empty list returns everything)."""
- results = self.transport.group_members(groupdn, attr_list)
+ results = self.transport.group_members(groupdn, attr_list, membertype)
counter = results[0]
diff --git a/ipa-python/rpcclient.py b/ipa-python/rpcclient.py
index 7fa075b1d..1c8e751b5 100644
--- a/ipa-python/rpcclient.py
+++ b/ipa-python/rpcclient.py
@@ -611,7 +611,7 @@ class RPCClient:
return ipautil.unwrap_binary_data(result)
- def group_members(self, groupdn, attr_list=None):
+ def group_members(self, groupdn, attr_list=None, memberstype=0):
"""Do a memberOf search of groupdn and return the attributes in
attr_list (an empty list returns everything)."""
@@ -620,7 +620,7 @@ class RPCClient:
server = self.setup_server()
try:
- result = server.group_members(groupdn, attr_list)
+ result = server.group_members(groupdn, attr_list, memberstype)
except xmlrpclib.Fault, fault:
raise ipaerror.gen_exception(fault.faultCode, fault.faultString)
except socket.error, (value, msg):