diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-05-23 11:00:24 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-05-30 08:46:21 +0200 |
commit | 8d00d7c13038abc152afbd46c96108753506fb77 (patch) | |
tree | 8d5242dee69fce097b05f961c2b104f82275213b /ipalib/plugins/entitle.py | |
parent | d62b2d9be5a1162f5fdb255aa4f361ce048722fa (diff) | |
download | freeipa-8d00d7c13038abc152afbd46c96108753506fb77.tar.gz freeipa-8d00d7c13038abc152afbd46c96108753506fb77.tar.xz freeipa-8d00d7c13038abc152afbd46c96108753506fb77.zip |
Enforce sizelimit in permission-find, post_callback returns truncated
We actually perform two searches in permission-find. The first looks
for matches within the permission object itself. The second looks at
matches in the underlying aci.
We need to break out in two places. The first is if we find enough
matches in the permission itself. The second when we are appending
matches from acis.
The post_callback() definition needed to be modified to return
the truncated value so a plugin author can modify that value.
https://fedorahosted.org/freeipa/ticket/2322
Diffstat (limited to 'ipalib/plugins/entitle.py')
-rw-r--r-- | ipalib/plugins/entitle.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/entitle.py b/ipalib/plugins/entitle.py index 6ade854c3..5ccdb6510 100644 --- a/ipalib/plugins/entitle.py +++ b/ipalib/plugins/entitle.py @@ -461,6 +461,7 @@ class entitle_find(LDAPSearch): def post_callback(self, ldap, entries, truncated, *args, **options): if len(entries) == 0: raise errors.NotRegisteredError() + return truncated api.register(entitle_find) |