mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix upgrade of HTTPInstance for KDC Proxy
HTTPInstance needs a LDAP connection for KDC Proxy upgrade. The patch ensures that an admin_conn is available. Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
parent
2842a83568
commit
0bf4e7fb4a
@ -1363,6 +1363,12 @@ def upgrade_configuration():
|
||||
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user