From 3a9210f06f2a1d28689d8b12179607b77078f8ea Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Thu, 2 Dec 2010 19:24:11 -0500 Subject: 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 --- ipalib/plugins/group.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/plugins/group.py') diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index 75f40c57..6d321064 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -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 ) -- cgit