summaryrefslogtreecommitdiffstats
path: root/ipa-python/rpcclient.py
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-09-20 16:58:54 -0400
committerSimo Sorce <ssorce@redhat.com>2007-09-20 16:58:54 -0400
commitfbfefe6b0e5723b79b0f9a3a96f93e9336017fd8 (patch)
treec7ef1ebd964eb6c5fc42e681c5527b514338ae60 /ipa-python/rpcclient.py
parentb85668579ec3fc69c2ed709533f8bd8d00e0e7e9 (diff)
parent4e79c37c604f0e51dab19fc28063b3186df0c6d9 (diff)
downloadfreeipa-fbfefe6b0e5723b79b0f9a3a96f93e9336017fd8.tar.gz
freeipa-fbfefe6b0e5723b79b0f9a3a96f93e9336017fd8.tar.xz
freeipa-fbfefe6b0e5723b79b0f9a3a96f93e9336017fd8.zip
Merge conflicts between rob and kevin patches
Diffstat (limited to 'ipa-python/rpcclient.py')
-rw-r--r--ipa-python/rpcclient.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipa-python/rpcclient.py b/ipa-python/rpcclient.py
index bbf2745ed..21ea68bc6 100644
--- a/ipa-python/rpcclient.py
+++ b/ipa-python/rpcclient.py
@@ -150,7 +150,7 @@ class RPCClient:
return ipautil.unwrap_binary_data(result)
- def find_users (self, criteria, sattrs=None):
+ def find_users (self, criteria, sattrs=None, searchlimit=0):
"""Return a list: counter followed by a User object for each user that
matches the criteria. If the results are truncated, counter will
be set to -1"""
@@ -160,7 +160,7 @@ class RPCClient:
# None values are not allowed in XML-RPC
if sattrs is None:
sattrs = "__NONE__"
- result = server.find_users(criteria, sattrs)
+ result = server.find_users(criteria, sattrs, searchlimit)
except xmlrpclib.Fault, fault:
raise ipaerror.gen_exception(fault.faultCode, fault.faultString)
except socket.error, (value, msg):
@@ -275,7 +275,7 @@ class RPCClient:
except socket.error, (value, msg):
raise xmlrpclib.Fault(value, msg)
- def find_groups (self, criteria, sattrs=None):
+ def find_groups (self, criteria, sattrs=None, searchlimit=0):
"""Return a list containing a Group object for each group that matches
the criteria."""
@@ -284,7 +284,7 @@ class RPCClient:
# None values are not allowed in XML-RPC
if sattrs is None:
sattrs = "__NONE__"
- result = server.find_groups(criteria, sattrs)
+ result = server.find_groups(criteria, sattrs, searchlimit)
except xmlrpclib.Fault, fault:
raise ipaerror.gen_exception(fault.faultCode, fault.faultString)
except socket.error, (value, msg):