Upgrade: configure PKINIT after adding anonymous principal

In order to set up PKINIT, the anonymous principal must already be
created, otherwise the upgrade with fail when trying out anonymous
PKINIT. Switch the order of steps so that this issue does not occur.

https://pagure.io/freeipa/issue/6792

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Babinsky
2017-03-30 13:09:42 +02:00
committed by Martin Basti
parent 6d4c917440
commit c2d95d3962
+1 -1
View File
@@ -1809,9 +1809,9 @@ def upgrade_configuration():
KDC_CERT=paths.KDC_CERT,
KDC_KEY=paths.KDC_KEY,
CACERT_PEM=paths.CACERT_PEM)
setup_pkinit(krb)
enable_anonymous_principal(krb)
http.request_anon_keytab()
setup_pkinit(krb)
if not ds_running:
ds.stop(ds_serverid)