From 5b4d5bee44d595dfd11563615f37bb45b17e60b1 Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Thu, 8 Mar 2012 15:40:58 +0100 Subject: 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(+) (limited to 'source4') 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) -- cgit