diff options
Diffstat (limited to 'source4/scripting/python')
| -rw-r--r-- | source4/scripting/python/samba/netcmd/user.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/source4/scripting/python/samba/netcmd/user.py b/source4/scripting/python/samba/netcmd/user.py index b13bc0d606..96a198a523 100644 --- a/source4/scripting/python/samba/netcmd/user.py +++ b/source4/scripting/python/samba/netcmd/user.py @@ -209,7 +209,9 @@ class cmd_user_password(Command):          lp = sambaopts.get_loadparm()          creds = credopts.get_credentials(lp) -        # FIXME: How to ensure user is authenticated before prompting for new password? +        # get old password now, to get the password prompts in the right order +        old_password = creds.get_password() +          net = Net(creds, lp, server=credopts.ipaddress)          password = newpassword | 
