diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-12-02 19:24:11 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-20 12:28:45 -0500 |
commit | 3a9210f06f2a1d28689d8b12179607b77078f8ea (patch) | |
tree | c2093c78689bc0e6cd80cc249737ef4795cdb686 /ipalib/plugins/group.py | |
parent | ffc6031ad76c2b28807e45a90b2906bf2e94b914 (diff) | |
download | freeipa-3a9210f06f2a1d28689d8b12179607b77078f8ea.tar.gz freeipa-3a9210f06f2a1d28689d8b12179607b77078f8ea.tar.xz freeipa-3a9210f06f2a1d28689d8b12179607b77078f8ea.zip |
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
Diffstat (limited to 'ipalib/plugins/group.py')
-rw-r--r-- | ipalib/plugins/group.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index 75f40c573..6d321064d 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 ) |