[Freeipa-devel] [PATCH] 0019 Server upgrade: disconnect ldap2 before DS restart

Fraser Tweedale ftweedal at redhat.com
Fri Jun 12 12:12:52 UTC 2015


On Fri, Jun 12, 2015 at 10:00:18PM +1000, Fraser Tweedale wrote:
> From eb1043521317e5759444caaedef1fd81eda55b47 Mon Sep 17 00:00:00 2001
> From: Fraser Tweedale <ftweedal at redhat.com>
> Date: Fri, 12 Jun 2015 07:54:23 -0400
> Subject: [PATCH] Server upgrade: disconnect ldap2 before DS restart
> 
> If ldap2 is not disconnected and DS is restarted, it will believe
> that it is still connected and connect error will result.
> Disconnect the ldap2 backend before a DS restart to prevent this.
>
A brief follow-up comment: from this experience I have learned that
if one connects to LDAP during server upgrade, one should disconnect
when done.  Otherwise if someone needs to add another DS restart,
breakage may occur.  Context manager in ldap2 might be useful.




More information about the Freeipa-devel mailing list