summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2012-03-08 15:40:58 +0100
committerMichael Adam <obnox@samba.org>2012-03-21 16:11:25 +0100
commit5b4d5bee44d595dfd11563615f37bb45b17e60b1 (patch)
treea5af2f72aa2af95054ca406e9ad0a83c6cff6918 /source4/scripting/python
parent70e71240e27e4b36b235afc0aeb302710a2b580e (diff)
downloadsamba-5b4d5bee44d595dfd11563615f37bb45b17e60b1.tar.gz
samba-5b4d5bee44d595dfd11563615f37bb45b17e60b1.tar.bz2
samba-5b4d5bee44d595dfd11563615f37bb45b17e60b1.zip
s4-samba-tool: add password verification in add user
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/netcmd/user.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/user.py b/source4/scripting/python/samba/netcmd/user.py
index f44ebcaa69..b56d0398ce 100644
--- 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)