summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-managed-entries
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:15 +0200
commit185ca8f6fc5e69e989e473c8b1d066aa2d8e5cb1 (patch)
tree5e74685f51c038463b24e9de7fe231fd84fc5c3e /install/tools/ipa-managed-entries
parent7d5106de976140e8425152a83a300be9dc49372a (diff)
downloadfreeipa-185ca8f6fc5e69e989e473c8b1d066aa2d8e5cb1.tar.gz
freeipa-185ca8f6fc5e69e989e473c8b1d066aa2d8e5cb1.tar.xz
freeipa-185ca8f6fc5e69e989e473c8b1d066aa2d8e5cb1.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-managed-entries')
-rwxr-xr-xinstall/tools/ipa-managed-entries2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/tools/ipa-managed-entries b/install/tools/ipa-managed-entries
index 9b3f54714..16f0a956c 100755
--- a/install/tools/ipa-managed-entries
+++ b/install/tools/ipa-managed-entries
@@ -112,6 +112,8 @@ def main():
dirman_password = options.dirman_password
else:
dirman_password = get_dirman_password()
+ if dirman_password is None:
+ sys.exit("\nDirectory Manager password required")
conn.do_simple_bind(bindpw=dirman_password)
except errors.ExecutionError, lde:
sys.exit("An error occurred while connecting to the server.\n%s\n" %