summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 283c2c16..e24da1bf 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -170,6 +170,11 @@ class host(LDAPObject):
'managedby': ['host'],
}
bindable = True
+ relationships = {
+ 'memberof': ('Parent', 'in_', 'not_in_'),
+ 'enrolledby': ('Enrolled by', 'enroll_by_', 'not_enroll_by_'),
+ 'managedby': ('Managed by', 'man_by_', 'not_man_by_'),
+ }
label = _('Hosts')
@@ -568,7 +573,7 @@ class host_find(LDAPSearch):
msg_summary = ngettext(
'%(count)d host matched', '%(count)d hosts matched'
)
- member_attributes = ['managedby']
+ member_attributes = ['memberof', 'enrolledby', 'managedby']
def pre_callback(self, ldap, filter, attrs_list, base_dn, scope, *args, **options):
if 'locality' in attrs_list: