mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
Fix permission-find with sizelimit set
If permission-find is fired with an argument and sizelimit set a message about truncation will be sent along with the result as the search in post_callback() does general search instead of having its filter properly set. https://fedorahosted.org/freeipa/ticket/5640 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
1 parent
0c044cb084
commit
a77627dd8c
1 file changed
+7
@@ -1306,6 +1306,13 @@ class permission_find(baseldap.LDAPSearch):
|
||||
filters.append(ldap.make_filter_from_attr('cn',
|
||||
options['name'],
|
||||
exact=False))
|
||||
index = tuple(self.args).index('criteria')
|
||||
try:
|
||||
term = args[index]
|
||||
filters.append(self.get_term_filter(ldap, term))
|
||||
except IndexError:
|
||||
term = None
|
||||
|
||||
attrs_list = list(self.obj.default_attributes)
|
||||
attrs_list += list(self.obj.attribute_members)
|
||||
if options.get('all'):
|
||||
|
||||
Reference in new issue
Block a user