diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-18 14:58:30 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-18 14:58:30 -0700 |
commit | 6b3d1e85da1397324fa7e8dc25706129ff8ed6fc (patch) | |
tree | bf15328822d13b8b2379ba42660be9d10d2d7f6c /ipa-server/xmlrpc-server | |
parent | c4998d3902ab17e73d29255db38f9c4cc33863d6 (diff) | |
download | freeipa.git-6b3d1e85da1397324fa7e8dc25706129ff8ed6fc.tar.gz freeipa.git-6b3d1e85da1397324fa7e8dc25706129ff8ed6fc.tar.xz freeipa.git-6b3d1e85da1397324fa7e8dc25706129ff8ed6fc.zip |
Add client-side search limit parameter for user search.
Limit editgroup user ajax search.
Minor UI cleanup for editgroup.
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r-- | ipa-server/xmlrpc-server/funcs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py index 66fabf4b..7d61f130 100644 --- a/ipa-server/xmlrpc-server/funcs.py +++ b/ipa-server/xmlrpc-server/funcs.py @@ -413,7 +413,7 @@ class IPAServer: return users - def find_users (self, criteria, sattrs=None, opts=None): + def find_users (self, criteria, sattrs=None, searchlimit=0, opts=None): """Returns a list: counter followed by the results. If the results are truncated, counter will be set to -1.""" # Assume the list of fields to search will come from a central @@ -435,13 +435,13 @@ class IPAServer: try: try: exact_results = conn.getListAsync(self.basedn, self.scope, - exact_match_filter, sattrs) + exact_match_filter, sattrs, 0, None, None, -1, searchlimit) except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): exact_results = [0] try: partial_results = conn.getListAsync(self.basedn, self.scope, - partial_match_filter, sattrs) + partial_match_filter, sattrs, 0, None, None, -1, searchlimit) except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): partial_results = [0] finally: |