mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
permission plugin: Support searching by extratargetfilter
The extratargetfilter behaves exactly like targetfilter, so that e.g. ipa permission-find --filter=(objectclass=ipausergroup) finds all permissions with that filter in the ACI. Part of the work for https://fedorahosted.org/freeipa/ticket/4216 Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
committed by
Martin Kosek
parent
fe2a41e8a3
commit
29eef98c76
@@ -1115,7 +1115,7 @@ class permission_find(baseldap.LDAPSearch):
|
||||
has_output_params = baseldap.LDAPSearch.has_output_params + output_params
|
||||
|
||||
def execute(self, *keys, **options):
|
||||
self.obj.preprocess_options(options)
|
||||
self.obj.preprocess_options(options, merge_targetfilter=True)
|
||||
return super(permission_find, self).execute(*keys, **options)
|
||||
|
||||
def pre_callback(self, ldap, filters, attrs_list, base_dn, scope,
|
||||
|
||||
Reference in New Issue
Block a user