Make timelimit a parameter to the find methods.
This commit is contained in:
1 parent
d95b47232d
commit
572b3e9fdd
4 files changed
+14
-18
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user