summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-06-10 13:24:48 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-06-15 09:54:04 +0200
commitc1d484afde34cb68cfb0d187004e107342180399 (patch)
tree77e01ab110b842fdfee722ea5eda95a236b3a90f /ipaserver
parent44cced658bde224957a605bfa083821d8fbf94c0 (diff)
downloadfreeipa-c1d484afde34cb68cfb0d187004e107342180399.tar.gz
freeipa-c1d484afde34cb68cfb0d187004e107342180399.tar.xz
freeipa-c1d484afde34cb68cfb0d187004e107342180399.zip
Server Upgrade: disconnect ldap2 connection before DS restart
Without this patch, the invalid api.Backend.ldap2 connection was used to communicate with DS and it raises network error after DS restart. Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/server/upgrade.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py
index 306d1d27c..a9dac59e0 100644
--- a/ipaserver/install/server/upgrade.py
+++ b/ipaserver/install/server/upgrade.py
@@ -1369,6 +1369,11 @@ def upgrade_configuration():
ds = dsinstance.DsInstance()
ds.configure_dirsrv_ccache()
+ # ldap2 connection is not valid after DS restart, close connection otherwise
+ # it will cause network errors
+ if api.Backend.ldap2.isconnected():
+ api.Backend.ldap2.disconnect()
+
ds.stop(ds_serverid)
fix_schema_file_syntax()
remove_ds_ra_cert(subject_base)