From 5b4d5bee44d595dfd11563615f37bb45b17e60b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Thu, 8 Mar 2012 15:40:58 +0100 Subject: [PATCH] s4-samba-tool: add password verification in add user Signed-off-by: Michael Adam --- source4/scripting/python/samba/netcmd/user.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/scripting/python/samba/netcmd/user.py b/source4/scripting/python/samba/netcmd/user.py index f44ebcaa69b..b56d0398ce4 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) -- 2.11.4.GIT