From 572b3e9fddfb2eecf1334099d4c73cfe4c0b3a56 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Thu, 27 Sep 2007 15:51:26 -0700 Subject: Make timelimit a parameter to the find methods. --- ipa-python/ipaclient.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipa-python/ipaclient.py') diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py index c653e0fa..d047f771 100644 --- a/ipa-python/ipaclient.py +++ b/ipa-python/ipaclient.py @@ -109,11 +109,11 @@ class IPAClient: result = self.transport.get_add_schema() return result - def find_users(self, criteria, sattrs=None, searchlimit=0): + def find_users(self, criteria, sattrs=None, searchlimit=0, timelimit=-1): """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""" - result = self.transport.find_users(criteria, sattrs, searchlimit) + result = self.transport.find_users(criteria, sattrs, searchlimit, timelimit) counter = result[0] users = [counter] @@ -193,10 +193,10 @@ class IPAClient: result = self.transport.add_group(group_dict, group_container) return result - def find_groups(self, criteria, sattrs=None, searchlimit=0): + def find_groups(self, criteria, sattrs=None, searchlimit=0, timelimit=-1): """Find groups whose cn matches the criteria. Wildcards are acceptable. Returns a list of Group objects.""" - result = self.transport.find_groups(criteria, sattrs, searchlimit) + result = self.transport.find_groups(criteria, sattrs, searchlimit, timelimit) counter = result[0] groups = [counter] -- cgit