diff options
author | Simo Sorce <ssorce@redhat.com> | 2007-09-28 14:55:28 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2007-09-28 14:55:28 -0400 |
commit | 2ef71a85d00b3572176d95859a7d951083794a88 (patch) | |
tree | e1939dbaba9153a1b22487344a8d7aeb35295101 /ipa-server | |
parent | 93deded293ec6d1c5f73f604f4f339c98ef7b2c7 (diff) | |
download | freeipa-2ef71a85d00b3572176d95859a7d951083794a88.tar.gz freeipa-2ef71a85d00b3572176d95859a7d951083794a88.tar.xz freeipa-2ef71a85d00b3572176d95859a7d951083794a88.zip |
Check passwords are not empty
Diffstat (limited to 'ipa-server')
-rw-r--r-- | ipa-server/ipa-install/ipa-server-install | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install index b8b9805ba..c5d6d4871 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: |