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:
committed by
Michael Adam
parent
70e71240e2
commit
5b4d5bee44
@ -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)
|
||||
|
Reference in New Issue
Block a user