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>
This commit is contained in:
Stanislav Laznicka
2016-08-11 14:08:33 +02:00
committed by Jan Cholasta
parent 1300381d45
commit 0df65b6d03

View File

@@ -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: