diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-01-16 10:19:08 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-01-19 10:40:11 -0500 |
commit | bc40686b7fd8929f83a9594380a02d4104ae0cdf (patch) | |
tree | 6d49ad43be5530e22b8a570470f38b8aef9fdaf5 /ipalib/plugins | |
parent | e708765d61b73e1f8ccba266d7bc934f6f4c1277 (diff) | |
download | freeipa-bc40686b7fd8929f83a9594380a02d4104ae0cdf.tar.gz freeipa-bc40686b7fd8929f83a9594380a02d4104ae0cdf.tar.xz freeipa-bc40686b7fd8929f83a9594380a02d4104ae0cdf.zip |
Fix rule definition to match new API
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/f_host.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugins/f_host.py b/ipalib/plugins/f_host.py index 3fcda77c..ea819a77 100644 --- a/ipalib/plugins/f_host.py +++ b/ipalib/plugins/f_host.py @@ -21,7 +21,7 @@ Frontend plugins for host/machine Identity. """ -from ipalib import api, crud, errors +from ipalib import api, crud, errors, util from ipalib import Object # Plugin base class from ipalib import Str, Flag # Parameter types @@ -42,7 +42,7 @@ def get_host(hostname): dn = ldap.find_entry_dn("serverhostname", hostname, "ipaHost") return dn -def validate_host(cn): +def validate_host(ugettext, cn): """ Require at least one dot in the hostname (to support localhost.localdomain) """ @@ -129,7 +129,7 @@ class host_add(crud.Add): # some required objectclasses # FIXME: add this attribute to cn=ipaconfig #kw['objectclass'] = config.get('ipahostobjectclasses') - kw['objectclass'] = ['nsHost', 'ipaHost'] + kw['objectclass'] = ['nsHost', 'ipaHost', 'pkiUser'] # Ensure the list of objectclasses is lower-case kw['objectclass'] = map(lambda z: z.lower(), kw.get('objectclass')) |