pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0051-Split-out-anonymous-PKINIT-test-to-a-separate-method.patch

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