ac7d03
From b12c465ae8b8ffb1e34741daf8c0dea6525e5fcf Mon Sep 17 00:00:00 2001
ac7d03
From: Martin Babinsky <mbabinsk@redhat.com>
ac7d03
Date: Wed, 22 Mar 2017 10:04:52 +0100
ac7d03
Subject: [PATCH] Split out anonymous PKINIT test to a separate method
ac7d03
ac7d03
This allows for more flexibility in the whole PKINIT setup process.
ac7d03
ac7d03
https://pagure.io/freeipa/issue/6792
ac7d03
ac7d03
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
ac7d03
---
ac7d03
 ipaserver/install/krbinstance.py | 2 ++
ac7d03
 1 file changed, 2 insertions(+)
ac7d03
ac7d03
diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py
ac7d03
index c817076249a224347421b1bf18088eecb8eb345f..5f4b5282f54234c15b1a8d8273eff69e134e665b 100644
ac7d03
--- a/ipaserver/install/krbinstance.py
ac7d03
+++ b/ipaserver/install/krbinstance.py
ac7d03
@@ -410,6 +410,7 @@ class KrbInstance(service.Service):
ac7d03
             root_logger.critical("krb5kdc service failed to restart")
ac7d03
             raise
ac7d03
 
ac7d03
+    def test_anonymous_pkinit(self):
ac7d03
         with ipautil.private_ccache() as anon_ccache:
ac7d03
             try:
ac7d03
                 ipautil.run([paths.KINIT, '-n', '-c', anon_ccache])
ac7d03
@@ -421,6 +422,7 @@ class KrbInstance(service.Service):
ac7d03
             self.steps = []
ac7d03
             self.step("installing X509 Certificate for PKINIT",
ac7d03
                       self.setup_pkinit)
ac7d03
+            self.step("testing anonymous PKINIT", self.test_anonymous_pkinit)
ac7d03
 
ac7d03
             self.start_creation()
ac7d03
 
ac7d03
-- 
ac7d03
2.12.2
ac7d03