From 2ef71a85d00b3572176d95859a7d951083794a88 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 28 Sep 2007 14:55:28 -0400 Subject: Check passwords are not empty --- ipa-server/ipa-install/ipa-server-install | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install index b8b9805b..c5d6d487 100644 --- a/ipa-server/ipa-install/ipa-server-install +++ b/ipa-server/ipa-install/ipa-server-install @@ -289,7 +289,10 @@ def main(): while not correct: dm_password = getpass.getpass("Please provide a password for the Directory Manager: ") pwd_confirm = getpass.getpass("Please confirm the password: ") - if dm_password != pwd_confirm: + if dm_password == "": + print "Password is empty!" + print "" + elif dm_password != pwd_confirm: print "Password mismatch!" print "" else: @@ -310,7 +313,10 @@ def main(): while not correct: master_password = getpass.getpass("Please provide a master password: ") pwd_confirm = getpass.getpass("Please confirm the password: ") - if master_password != pwd_confirm: + if master_password == "": + print "Password is empty!" + print "" + elif master_password != pwd_confirm: print "Password mismatch!" print "" else: @@ -328,7 +334,10 @@ def main(): while not correct: admin_password = getpass.getpass("Please provide a kerberos password for the 'admin' user: ") pwd_confirm = getpass.getpass("Please confirm the password: ") - if admin_password != pwd_confirm: + if admin_password == "": + print "Password is empty!" + print "" + elif admin_password != pwd_confirm: print "Password mismatch!" print "" else: -- cgit