summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ldapupdate.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-11-04 15:59:50 +0100
committerPetr Vobornik <pvoborni@redhat.com>2014-11-06 10:45:16 +0100
commit730f33680b7254622659eec2e48399ef7033a477 (patch)
treef193d6df1ff4b3a340aa6da135112c168b59dd1d /ipaserver/install/ldapupdate.py
parent9335552418e515cd97da549da403447e5cae842c (diff)
downloadfreeipa-730f33680b7254622659eec2e48399ef7033a477.tar.gz
freeipa-730f33680b7254622659eec2e48399ef7033a477.tar.xz
freeipa-730f33680b7254622659eec2e48399ef7033a477.zip
Fix upgrade: do not use invalid ldap connection
Ticket: https://fedorahosted.org/freeipa/ticket/4670 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/install/ldapupdate.py')
-rw-r--r--ipaserver/install/ldapupdate.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py
index 6bed046d2..47f0399b9 100644
--- a/ipaserver/install/ldapupdate.py
+++ b/ipaserver/install/ldapupdate.py
@@ -889,3 +889,9 @@ class LDAPUpdate:
self._run_updates(updates)
return self.modified
+
+ def close_connection(self):
+ """Close ldap connection"""
+ if self.conn:
+ self.conn.unbind()
+ self.conn = None