[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Pki-devel] [pki-devel][PATCH] 0033-Simple-fix-for-this-is-not-requiring-the-pki_client_.patch



Ticket #1266  https://fedorahosted.org/pki/ticket/1266

Clone CA: Client database directory password required for install




Simple fix for this is not requiring the
 pki_client_database_password to be set when performing a clone operation.

Tested with a cloned CA and a couple of other subystems, such as OCSP.
From c3cedb8a2969f2d421675be9141d79537fb0a555 Mon Sep 17 00:00:00 2001
From: Jack Magne <jmagne localhost localdomain>
Date: Thu, 7 May 2015 15:38:47 -0700
Subject: [PATCH] Simple fix for this is not requiring the
 pki_client_database_password to be set when performing a clone operation.

Tested with a cloned CA and a couple of other subysstems, such as OCSP.
---
 base/server/python/pki/server/deployment/pkihelper.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py
index b9d48ee..a7e7fb3 100644
--- a/base/server/python/pki/server/deployment/pkihelper.py
+++ b/base/server/python/pki/server/deployment/pkihelper.py
@@ -563,7 +563,9 @@ class ConfigurationFile:
         if config.str2bool(self.mdict['pki_backup_keys']):
             self.confirm_data_exists("pki_backup_password")
         # Verify existence of Client Pin for NSS client security databases
-        self.confirm_data_exists("pki_client_database_password")
+        # if not a clone.
+        if not self.clone:
+            self.confirm_data_exists("pki_client_database_password")
         # Verify existence of Client PKCS #12 Password for Admin Cert
         self.confirm_data_exists("pki_client_pkcs12_password")
         # Verify existence of PKCS #12 Password (ONLY for Clones)
-- 
2.1.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]