From d2d13826c661e2ba244812897da13b40fbf2bc67 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Wed, 17 Jun 2015 14:19:25 +0200 Subject: ipa-ca-install fix: reconnect ldap2 after DS restart https://fedorahosted.org/freeipa/ticket/5064 Reviewed-By: Martin Babinsky --- ipaserver/install/ca.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipaserver/install') diff --git a/ipaserver/install/ca.py b/ipaserver/install/ca.py index b84756922..498cc48a7 100644 --- a/ipaserver/install/ca.py +++ b/ipaserver/install/ca.py @@ -122,7 +122,16 @@ def install_step_0(standalone, replica_config, options): postinstall = True else: postinstall = False + + if standalone: + api.Backend.ldap2.disconnect() + cainstance.install_replica_ca(replica_config, postinstall) + + if standalone: + api.Backend.ldap2.connect(bind_dn=DN(('cn', 'Directory Manager')), + bind_pw=dm_password) + return if options.external_cert_files: -- cgit