summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-08-17 09:51:36 +0200
committerMartin Kosek <mkosek@redhat.com>2012-08-17 12:07:46 +0200
commit489493e6903f23fbb174b87fa9604cff30ca6a79 (patch)
tree4f2a139b52ffcb66f0d4b152326ba81cb2bab3f0 /install
parentadc2f77a39df33d5e273536914cd543f43d3f393 (diff)
downloadfreeipa-489493e6903f23fbb174b87fa9604cff30ca6a79.tar.gz
freeipa-489493e6903f23fbb174b87fa9604cff30ca6a79.tar.xz
freeipa-489493e6903f23fbb174b87fa9604cff30ca6a79.zip
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
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-server-install5
1 files changed, 4 insertions, 1 deletions
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: