git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
70e7124
)
s4-samba-tool: add password verification in add user
author
Björn Baumbach
<bb@sernet.de>
Thu, 8 Mar 2012 14:40:58 +0000
(15:40 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 21 Mar 2012 15:11:25 +0000
(16:11 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
source4/scripting/python/samba/netcmd/user.py
patch
|
blob
|
history
diff --git
a/source4/scripting/python/samba/netcmd/user.py
b/source4/scripting/python/samba/netcmd/user.py
index f44ebcaa69b541bde39f2bb40043355573d5af2f..b56d0398ce46d7f9da0721e2c340c20e26b5f019 100644
(file)
--- a/
source4/scripting/python/samba/netcmd/user.py
+++ b/
source4/scripting/python/samba/netcmd/user.py
@@
-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)