summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2014-03-13 08:25:11 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-03-14 14:26:38 +0100
commitb3c2197b7e4ed18a7febe3efa6396c2272ebccca (patch)
tree29d980aa57185f4dce2db0a7ed31102d69271f3e /install/tools/ipa-replica-install
parent64cc4d81cce2143f13b9ddad946473d58bc42b36 (diff)
downloadfreeipa-b3c2197b7e4ed18a7febe3efa6396c2272ebccca.tar.gz
freeipa-b3c2197b7e4ed18a7febe3efa6396c2272ebccca.tar.xz
freeipa-b3c2197b7e4ed18a7febe3efa6396c2272ebccca.zip
Update Dogtag 9 database during replica installation
When Dogtag 10 based FreeIPA replica is being installed for a Dogtag 9 based master, the PKI database is not updated and miss several ACLs which prevent some of the PKI functions, e.g. an ability to create other clones. Add an update file to do the database update. Content is based on recommendation from PKI team: * https://bugzilla.redhat.com/show_bug.cgi?id=1075118#c9 This update file can be removed when Dogtag database upgrades are done in PKI component. Upstream tickets: * https://fedorahosted.org/pki/ticket/710 (database upgrade framework) * https://fedorahosted.org/pki/ticket/906 (checking database version) Also make sure that PKI service is restarted in the end of the installation as the other services to make sure it picks changes done during LDAP updates. https://fedorahosted.org/freeipa/ticket/4243 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/tools/ipa-replica-install')
-rwxr-xr-xinstall/tools/ipa-replica-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index cebcbf1a4..9f420aef6 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -713,6 +713,10 @@ def main():
service.print_msg("Restarting the KDC")
krb.restart()
+ if CA and config.setup_ca:
+ service.print_msg("Restarting the certificate server")
+ CA.restart(dogtag.configured_constants().PKI_INSTANCE_NAME)
+
if options.setup_dns:
install_bind(config, options)