From 489493e6903f23fbb174b87fa9604cff30ca6a79 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Fri, 17 Aug 2012 09:51:36 +0200 Subject: 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 16a9e3391..ba056fde2 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: -- cgit