diff options
Diffstat (limited to 'ipaserver/install/service.py')
-rw-r--r-- | ipaserver/install/service.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index 4958721e7..47489c09c 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -145,12 +145,14 @@ class Service: conn.unbind() return newdn = "krbprincipalname=%s,cn=services,cn=accounts,%s" % (principal, self.suffix) + hostdn = "fqdn=%s,cn=computers,cn=accounts,%s" % (self.fqdn, self.suffix) conn.deleteEntry(dn) entry.dn = newdn classes = entry.getValues("objectclass") classes = classes + ["ipaobject", "ipaservice", "pkiuser"] entry.setValues("objectclass", list(set(classes))) entry.setValue("ipauniqueid", str(uuid.uuid1())) + entry.setValue("managedby", hostdn) conn.addEntry(entry) conn.unbind() return newdn |