diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2012-06-21 16:04:10 +0300 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-06-22 08:45:55 +0200 |
commit | 0e3d064ac1cf6118d91ba277fb1c83e7275c292b (patch) | |
tree | 18cb907a1e197c59c13463f9ab3c1915c094127f | |
parent | 37b7b28993552a6ab0fe22fc599c3c5fe8362fe3 (diff) | |
download | freeipa-0e3d064ac1cf6118d91ba277fb1c83e7275c292b.tar.gz freeipa-0e3d064ac1cf6118d91ba277fb1c83e7275c292b.tar.xz freeipa-0e3d064ac1cf6118d91ba277fb1c83e7275c292b.zip |
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
-rw-r--r-- | ipaserver/install/adtrustinstance.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py index 5f7405431..4d417c8d1 100644 --- a/ipaserver/install/adtrustinstance.py +++ b/ipaserver/install/adtrustinstance.py @@ -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) |