ipa-server-install with external CA could not be run in
an unattended mode as DM password was required to decipher answer
cache.

https://fedorahosted.org/freeipa/ticket/2793

>From faf4a1c5966be148e514fef93fcb7103edb14b6b Mon Sep 17 00:00:00 2001
From: Martin Kosek <mko...@redhat.com>
Date: Fri, 17 Aug 2012 09:51:36 +0200
Subject: [PATCH] Read DM password from option in external CA install

ipa-server-install with external CA could not be run in
an unattended mode as DM password was required to decipher answer
cache.

https://fedorahosted.org/freeipa/ticket/2793
---
 install/tools/ipa-server-install | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 16a9e3391d6469523205564f51e34c766a8fa73c..ba056fde2256e21862e04f878fd70f10a6f4456f 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -619,7 +619,10 @@ def main():
 
     # This will override any settings passed in on the cmdline
     if ipautil.file_exists(ANSWER_CACHE):
-        dm_password = read_password("Directory Manager", confirm=False)
+        if options.dm_password is not None:
+            dm_password = options.dm_password
+        else:
+            dm_password = read_password("Directory Manager", confirm=False)
         if dm_password is None:
             sys.exit("\nDirectory Manager password required")
         try:
-- 
1.7.11.2

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to