summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hostgroup.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2010-12-02 19:24:11 -0500
committerAdam Young <ayoung@redhat.com>2010-12-20 12:28:45 -0500
commit3a9210f06f2a1d28689d8b12179607b77078f8ea (patch)
treec2093c78689bc0e6cd80cc249737ef4795cdb686 /ipalib/plugins/hostgroup.py
parentffc6031ad76c2b28807e45a90b2906bf2e94b914 (diff)
downloadfreeipa-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/hostgroup.py')
-rw-r--r--ipalib/plugins/hostgroup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py
index 1c4cc28e8..d8e1331cc 100644
--- a/ipalib/plugins/hostgroup.py
+++ b/ipalib/plugins/hostgroup.py
@@ -123,7 +123,7 @@ class hostgroup_find(LDAPSearch):
"""
Search for hostgroups.
"""
-
+ member_attributes = ['member']
msg_summary = ngettext(
'%(count)d hostgroup matched', '%(count)d hostgroups matched'
)