On 18/06/15 15:04, Martin Babinsky wrote:
On 06/17/2015 02:28 PM, Martin Basti wrote:
https://fedorahosted.org/freeipa/ticket/5064

Patch attached.



ACK

Rebased patch attached.

--
Martin Basti

From e6827b6993706d16831af24e8be7d1ccec4c4975 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Wed, 17 Jun 2015 14:19:25 +0200
Subject: [PATCH] ipa-ca-install fix: reconnect ldap2 after DS restart

https://fedorahosted.org/freeipa/ticket/5064
---
 ipaserver/install/ca.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ipaserver/install/ca.py b/ipaserver/install/ca.py
index b84756922be6deba11038d58b5ffb0fa3c150f6a..498cc48a742d1b2d862eb9dfdb18743cfb211b78 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:
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to