Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix permission_find fail on low search size limit
permission_find() method would have failed if size_limit in config is too
small caused by a search in post_callback. This search should also
respect the passed sizelimit or the sizelimit from ipa config if no
sizelimit is passed.

https://fedorahosted.org/freeipa/ticket/5640

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
  • Loading branch information
stlaz authored and Jan Cholasta committed Dec 6, 2016
1 parent 0df65b6 commit 29aa487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipaserver/plugins/permission.py
Expand Up @@ -1307,10 +1307,10 @@ def post_callback(self, ldap, entries, truncated, *args, **options):
if options.get('all'):
attrs_list.append('*')
try:
legacy_entries = ldap.get_entries(
legacy_entries, truncated = ldap.find_entries(
base_dn=DN(self.obj.container_dn, self.api.env.basedn),
filter=ldap.combine_filters(filters, rules=ldap.MATCH_ALL),
attrs_list=attrs_list)
attrs_list=attrs_list, size_limit=max_entries)
# Retrieve the root entry (with all legacy ACIs) at once
root_entry = ldap.get_entry(DN(api.env.basedn), ['aci'])
except errors.NotFound:
Expand Down

0 comments on commit 29aa487

Please sign in to comment.