summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorStanislav Laznicka <slaznick@redhat.com>2016-08-11 14:08:33 +0200
committerJan Cholasta <jcholast@redhat.com>2016-12-06 11:36:46 +0100
commit0df65b6d035331322998ce5a15bdaae1bfd97c67 (patch)
tree2b3a7ca7e6418a72c9cb8259849429fb1965cf4e /ipapython
parent1300381d45a23073261e62cb031cf4285a34f641 (diff)
downloadfreeipa-0df65b6d035331322998ce5a15bdaae1bfd97c67.tar.gz
freeipa-0df65b6d035331322998ce5a15bdaae1bfd97c67.tar.xz
freeipa-0df65b6d035331322998ce5a15bdaae1bfd97c67.zip
Make get_entries() not ignore its limit arguments
get_entries() wouldn't pass some arguments deeper to find_entries() function it wraps. This would cause unexpected behavior in some cases throughout the framework where specific (non-)limitations are expected. https://fedorahosted.org/freeipa/ticket/5640 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/ipaldap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index 94a5e1e0d..daee06878 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -1325,7 +1325,8 @@ class LDAPClient(object):
for their description.
"""
entries, truncated = self.find_entries(
- base_dn=base_dn, scope=scope, filter=filter, attrs_list=attrs_list)
+ base_dn=base_dn, scope=scope, filter=filter, attrs_list=attrs_list,
+ **kwargs)
try:
self.handle_truncated_result(truncated)
except errors.LimitsExceeded as e: