diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-12-16 16:04:53 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-12-16 19:26:59 -0700 |
commit | c3f9ec14d90c46f20bd03311e9b31e8fa7c116ce (patch) | |
tree | a4019f771531ab227791515b49cc8f632bb3afff /ipaserver/install/krbinstance.py | |
parent | 585540e0a2d28d0e275dcb17d317880ff1a6d80f (diff) | |
download | freeipa-c3f9ec14d90c46f20bd03311e9b31e8fa7c116ce.tar.gz freeipa-c3f9ec14d90c46f20bd03311e9b31e8fa7c116ce.tar.xz freeipa-c3f9ec14d90c46f20bd03311e9b31e8fa7c116ce.zip |
Make hosts more like real services so we can issue certs for host principals
This patch should make joining a client to the domain and using certmonger
to get an initial certificate work.
Diffstat (limited to 'ipaserver/install/krbinstance.py')
-rw-r--r-- | ipaserver/install/krbinstance.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py index c4a20b54..71aeeb20 100644 --- a/ipaserver/install/krbinstance.py +++ b/ipaserver/install/krbinstance.py @@ -112,7 +112,7 @@ class KrbInstance(service.Service): # Create a host entry for this master host_dn = "fqdn=%s,cn=computers,cn=accounts,%s" % (self.fqdn, self.suffix) host_entry = ipaldap.Entry(host_dn) - host_entry.setValues('objectclass', ['top', 'ipaobject', 'nshost', 'ipahost', 'pkiuser', 'krbprincipalaux', 'krbprincipal', 'krbticketpolicyaux']) + host_entry.setValues('objectclass', ['top', 'ipaobject', 'nshost', 'ipahost', 'ipaservice', 'pkiuser', 'krbprincipalaux', 'krbprincipal', 'krbticketpolicyaux']) host_entry.setValue('krbextradata', service_entry.getValue('krbextradata')) host_entry.setValue('krblastpwdchange', service_entry.getValue('krblastpwdchange')) host_entry.setValue('krbpasswordexpiration', service_entry.getValue('krbpasswordexpiration')) @@ -123,6 +123,7 @@ class KrbInstance(service.Service): host_entry.setValue('cn', self.fqdn) host_entry.setValue('fqdn', self.fqdn) host_entry.setValue('ipauniqueid', str(uuid.uuid1())) + host_entry.setValue('managedby', host_dn) conn.addEntry(host_entry) conn.unbind() |