summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-11-23 15:04:50 +0100
committerRob Crittenden <rcrit@thor.greyoak.com>2010-01-14 16:01:22 -0500
commitce87e04af0045f6490fea4b531e3670f52fe0752 (patch)
treea33122ab2179ee43867bcf762c8d17df2ed6b977 /ipalib
parent2e22963a2d71647763fefc991c8564361bb0aef4 (diff)
downloadfreeipa-ce87e04af0045f6490fea4b531e3670f52fe0752.tar.gz
freeipa-ce87e04af0045f6490fea4b531e3670f52fe0752.tar.xz
freeipa-ce87e04af0045f6490fea4b531e3670f52fe0752.zip
Make host objects aware of their membership and that l==localityName.
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/host.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 15870b0a6..9172513b6 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -62,15 +62,21 @@ class host(LDAPObject):
'cn': 'name',
'fqdn': 'hostname',
'localityname': 'locality',
+ 'l': 'locality',
'nshostlocation': 'location',
'nshardwareplatform': 'platform',
'nsosversion': 'operating system',
'serverhostname': 'server hostname',
'enrolledby user': 'enrolled by',
'krbprincipalname': 'kerberos principal',
+ 'ipauniqueid': 'unique identifier',
+ 'memberof hostgroup': 'member of hostgroups',
+ 'memberof netgroup': 'member of netgroups',
+ 'memberof rolegroup': 'member of rolegroups',
}
attribute_members = {
'enrolledby': ['user'],
+ 'memberof': ['hostgroup', 'netgroup', 'rolegroup'],
}
takes_params = (