diff options
author | Martin Basti <mbasti@redhat.com> | 2014-11-04 15:59:50 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-11-06 10:45:16 +0100 |
commit | 730f33680b7254622659eec2e48399ef7033a477 (patch) | |
tree | f193d6df1ff4b3a340aa6da135112c168b59dd1d /ipaserver/install/ldapupdate.py | |
parent | 9335552418e515cd97da549da403447e5cae842c (diff) | |
download | freeipa-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.py | 6 |
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 |