mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-13 17:02:02 -05:00
Check passwords are not empty
This commit is contained in:
1 parent
93deded293
commit
2ef71a85d0
1 file changed
+12
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user