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/netgroup.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/netgroup.py')
-rw-r--r-- | ipalib/plugins/netgroup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/netgroup.py b/ipalib/plugins/netgroup.py index e79aca2ad..a000c41e4 100644 --- a/ipalib/plugins/netgroup.py +++ b/ipalib/plugins/netgroup.py @@ -171,6 +171,7 @@ class netgroup_find(LDAPSearch): """ Search for a netgroup. """ + member_attributes = ['member', 'memberuser', 'memberhost'] has_output_params = LDAPSearch.has_output_params + output_params msg_summary = ngettext( '%(count)d netgroup matched', '%(count)d netgroups matched' |