mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Enable filtering search results by member attributes.
LDAPSearch base class has now the ability to generate additional options for objects with member attributes. These options are used to filter search results - search only for objects without the specified members. Example: ipa group-find --no-users=admin Only direct members are taken into account. Ticket #288
This commit is contained in:
@@ -212,6 +212,8 @@ class group_find(LDAPSearch):
|
||||
"""
|
||||
Search for groups.
|
||||
"""
|
||||
member_attributes = ['member']
|
||||
|
||||
msg_summary = ngettext(
|
||||
'%(count)d group matched', '%(count)d groups matched', 0
|
||||
)
|
||||
|
Reference in New Issue
Block a user