summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-10-06 08:22:08 +0200
committerMartin Kosek <mkosek@redhat.com>2011-10-06 08:28:34 +0200
commit45212301f2406be96117e9a7604b95849a57f85b (patch)
treecd219a2e8c575e4642608faf4e2c0df2b28ee0c6 /install/tools/ipa-replica-install
parent5de97801aab2e8e4fd41b8ab4e914e6ca0b1f781 (diff)
downloadfreeipa-45212301f2406be96117e9a7604b95849a57f85b.tar.gz
freeipa-45212301f2406be96117e9a7604b95849a57f85b.tar.xz
freeipa-45212301f2406be96117e9a7604b95849a57f85b.zip
Install tools crash when password prompt is interrupted
When getpass.getpass() function is interrupted via CTRL+D, EOFError exception is thrown. Most of the install tools are not prepared for this event and crash with this exception. Make sure that it is handled properly and nice error message is printed. https://fedorahosted.org/freeipa/ticket/1916
Diffstat (limited to 'install/tools/ipa-replica-install')
-rwxr-xr-xinstall/tools/ipa-replica-install2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index 960cca695..7880ebc7d 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -313,6 +313,8 @@ def main():
dirman_password = get_dirman_password()
except KeyboardInterrupt:
sys.exit(0)
+ if dirman_password is None:
+ sys.exit("\nDirectory Manager password required")
try:
top_dir, dir = expand_replica_info(filename, dirman_password)