restart dirsrv as part of ipa-adtrust-install

We should restart Directory Server when performing AD trusts configuration
to enable new CLDAP plugin and force KDC to notice MS PAC is now available.
Previously we only restarted KDC but if dirsrv is restarted, KDC will notice
its socket disappeared and will refresh itself

http://fedorahosted.org/freeipa/ticket/2862
This commit is contained in:
Alexander Bokovoy
2012-06-21 16:04:10 +03:00
committed by Martin Kosek
parent 37b7b28993
commit 0e3d064ac1

View File

@@ -364,9 +364,9 @@ class ADTRUSTInstance(service.Service):
except:
pass
def __restart_kdc(self):
def __restart_dirsrv(self):
try:
ipaservices.knownservices.krb5kdc.restart()
ipaservices.knownservices.dirsrv.restart()
except:
pass
@@ -434,8 +434,8 @@ class ADTRUSTInstance(service.Service):
if not self.no_msdcs:
self.step("adding special DNS service records", \
self.__add_dns_service_records)
self.step("restarting KDC to take MS PAC changes into account", \
self.__restart_kdc)
self.step("restarting Directory Server to take MS PAC and CLDAP changes into account", \
self.__restart_dirsrv)
self.step("setting SELinux booleans", \
self.__configure_selinux_for_smbd)
self.step("starting smbd", self.__start)