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

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