mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Start dirsrv for kdcproxy upgrade
The kdcproxy upgrade step in ipa-server-upgrade needs a running dirsrv instance. Under some circumstances the dirsrv isn't running. The patch rearranges some upgrade steps and starts DS before enable_kdcproxy(). https://fedorahosted.org/freeipa/ticket/5113 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
5106421961
commit
c701ab612d
@@ -1396,22 +1396,6 @@ def upgrade_configuration():
|
||||
http.change_mod_nss_port_from_http()
|
||||
http.configure_certmonger_renewal_guard()
|
||||
|
||||
if not http.is_kdcproxy_configured():
|
||||
root_logger.info('[Enabling KDC Proxy]')
|
||||
if http.admin_conn is None:
|
||||
http.ldapi = True
|
||||
http.fqdn = fqdn
|
||||
http.realm = api.env.realm
|
||||
http.suffix = ipautil.realm_to_suffix(api.env.realm)
|
||||
http.ldap_connect()
|
||||
http.create_kdcproxy_conf()
|
||||
http.enable_kdcproxy()
|
||||
|
||||
http.stop()
|
||||
update_mod_nss_protocol(http)
|
||||
fix_trust_flags()
|
||||
http.start()
|
||||
|
||||
ds = dsinstance.DsInstance()
|
||||
ds.configure_dirsrv_ccache()
|
||||
|
||||
@@ -1433,6 +1417,25 @@ def upgrade_configuration():
|
||||
ds.suffix = ipautil.realm_to_suffix(api.env.realm)
|
||||
ds_enable_sidgen_extdom_plugins(ds)
|
||||
|
||||
# Now 389-ds is available, run the remaining http tasks
|
||||
if not http.is_kdcproxy_configured():
|
||||
root_logger.info('[Enabling KDC Proxy]')
|
||||
if http.admin_conn is None:
|
||||
# 389-ds needs to be running
|
||||
ds.start()
|
||||
http.ldapi = True
|
||||
http.fqdn = fqdn
|
||||
http.realm = api.env.realm
|
||||
http.suffix = ipautil.realm_to_suffix(api.env.realm)
|
||||
http.ldap_connect()
|
||||
http.create_kdcproxy_conf()
|
||||
http.enable_kdcproxy()
|
||||
|
||||
http.stop()
|
||||
update_mod_nss_protocol(http)
|
||||
fix_trust_flags()
|
||||
http.start()
|
||||
|
||||
uninstall_selfsign(ds, http)
|
||||
|
||||
simple_service_list = (
|
||||
|
||||
Reference in New Issue
Block a user