483b06
From e4f21a17762e3dcdbe05d9d62255fff9a7e2c8fa Mon Sep 17 00:00:00 2001
483b06
From: Stanislav Laznicka <slaznick@redhat.com>
483b06
Date: Tue, 4 Apr 2017 10:41:23 +0200
483b06
Subject: [PATCH] server-install: remove broken no-pkinit check
483b06
483b06
Don't check for no-pkinit option in case pkinit cert file was
483b06
provided. Setting no-pkinit is prohibited in this case, so without
483b06
this fix we have an impossible option-check if we want to provide
483b06
an own pkinit certificate and private key.
483b06
483b06
https://pagure.io/freeipa/issue/6807
483b06
483b06
Reviewed-By: Martin Basti <mbasti@redhat.com>
483b06
---
483b06
 ipaserver/install/server/install.py | 5 -----
483b06
 1 file changed, 5 deletions(-)
483b06
483b06
diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py
483b06
index 197f01ccef58bb3564eb4c6b5b4d615bff1e523d..b899b4be4028e6cdfd95bb9868fba8be25a07b65 100644
483b06
--- a/ipaserver/install/server/install.py
483b06
+++ b/ipaserver/install/server/install.py
483b06
@@ -513,11 +513,6 @@ def install_check(installer):
483b06
         dirsrv_pkcs12_info = (dirsrv_pkcs12_file.name, dirsrv_pin)
483b06
 
483b06
     if options.pkinit_cert_files:
483b06
-        if not options.no_pkinit:
483b06
-            raise ScriptError("Cannot create KDC PKINIT certificate and use "
483b06
-                              "provided external PKINIT certificate at the "
483b06
-                              "same time. Please choose one of them.")
483b06
-
483b06
         if options.pkinit_pin is None:
483b06
             options.pkinit_pin = read_password(
483b06
                 "Enter Kerberos KDC private key unlock",
483b06
-- 
483b06
2.12.2
483b06