Blame SOURCES/pki-core-Always-check-FIPS-mode-at-installation-time.patch

92a605
From ad8c47aaf675bbda7b2ab50e6fc20b22862f83c3 Mon Sep 17 00:00:00 2001
92a605
From: Matthew Harmsen <mharmsen@redhat.com>
92a605
Date: Tue, 23 May 2017 11:46:41 -0600
92a605
Subject: [PATCH] Always check FIPS mode at installation time
92a605
92a605
- Bugzilla Bug #1454603 - Unable to install IPA server due to pkispawn error
92a605
92a605
(cherry picked from commit 3249ddc2c19f6f5ded11823b345c9c58bae4750b)
92a605
---
92a605
 base/server/python/pki/server/deployment/scriptlets/initialization.py | 2 ++
92a605
 1 file changed, 2 insertions(+)
92a605
92a605
diff --git a/base/server/python/pki/server/deployment/scriptlets/initialization.py b/base/server/python/pki/server/deployment/scriptlets/initialization.py
92a605
index 0e31543..4dc4e9a 100644
92a605
--- a/base/server/python/pki/server/deployment/scriptlets/initialization.py
92a605
+++ b/base/server/python/pki/server/deployment/scriptlets/initialization.py
92a605
@@ -42,6 +42,8 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
92a605
         # ALWAYS establish 'uid' and 'gid'
92a605
         deployer.identity.set_uid(deployer.mdict['pki_user'])
92a605
         deployer.identity.set_gid(deployer.mdict['pki_group'])
92a605
+        # ALWAYS check FIPS mode
92a605
+        deployer.fips.is_fips_enabled()
92a605
         # ALWAYS initialize HSMs (when and if present)
92a605
         deployer.hsm.initialize()
92a605
         if config.str2bool(deployer.mdict['pki_skip_installation']):
92a605
-- 
92a605
1.8.3.1
92a605