From 0df65b6d035331322998ce5a15bdaae1bfd97c67 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Thu, 11 Aug 2016 14:08:33 +0200 Subject: [PATCH] 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 --- ipapython/ipaldap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: