From ebefb281775d5bd5f32459ac597af78781d7dbf5 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: May 05 2017 16:55:41 +0000 Subject: upgrade: add missing suffix to http instance During an upgrade, http.suffix is used to identify ldap entry when configuring kdc proxy. When the suffix is missing, the script crashed when enabling KDC proxy, because it used invalid DN. Fixes https://pagure.io/freeipa/issue/6920 Reviewed-By: Martin Basti Reviewed-By: Martin Babinsky --- diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py index 4d8fd66..9aec2d8 100644 --- a/ipaserver/install/server/upgrade.py +++ b/ipaserver/install/server/upgrade.py @@ -1638,6 +1638,7 @@ def upgrade_configuration(): http = httpinstance.HTTPInstance(fstore) http.fqdn = fqdn http.realm = api.env.realm + http.suffix = ipautil.realm_to_suffix(api.env.realm) http.configure_selinux_for_httpd() http.change_mod_nss_port_from_http()