1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

s4-samba-tool: add password verification in add user

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Björn Baumbach
2012-03-08 15:40:58 +01:00
committed by Michael Adam
parent 70e71240e2
commit 5b4d5bee44

View File

@ -120,6 +120,10 @@ Example3 shows how to create a new user in the OrgUnit organizational unit.
if password is not None and password is not '':
break
password = getpass("New Password: ")
passwordverify = getpass("Retype Password: ")
if not password == passwordverify:
password = None
self.outf.write("Sorry, passwords do not match.\n")
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)