mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
committed by
Petr Vobornik
parent
44cced658b
commit
c1d484afde
@@ -1369,6 +1369,11 @@ def upgrade_configuration():
|
|||||||
ds = dsinstance.DsInstance()
|
ds = dsinstance.DsInstance()
|
||||||
ds.configure_dirsrv_ccache()
|
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)
|
ds.stop(ds_serverid)
|
||||||
fix_schema_file_syntax()
|
fix_schema_file_syntax()
|
||||||
remove_ds_ra_cert(subject_base)
|
remove_ds_ra_cert(subject_base)
|
||||||
|
|||||||
Reference in New Issue
Block a user