summaryrefslogtreecommitdiffstats
path: root/ipaserver/install
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-06-29 11:35:07 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-06-29 17:28:56 +0200
commit0bf4e7fb4ae1e32bfd8fe9f92fd9ebed7f4cad93 (patch)
tree3793e01fb07de13cb8c44155556c3ac74ae95302 /ipaserver/install
parent2842a83568301c85d340801daae42078333ce63d (diff)
downloadfreeipa-0bf4e7fb4ae1e32bfd8fe9f92fd9ebed7f4cad93.tar.gz
freeipa-0bf4e7fb4ae1e32bfd8fe9f92fd9ebed7f4cad93.tar.xz
freeipa-0bf4e7fb4ae1e32bfd8fe9f92fd9ebed7f4cad93.zip
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>
Diffstat (limited to 'ipaserver/install')
-rw-r--r--ipaserver/install/server/upgrade.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py
index 784a03b19..822f74622 100644
--- a/ipaserver/install/server/upgrade.py
+++ b/ipaserver/install/server/upgrade.py
@@ -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()