diff options
author | Günther Deschner <gd@samba.org> | 2008-12-09 12:39:47 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-12-09 13:20:36 +0100 |
commit | 8608fd87b0ba43e128b984e314047589e607f377 (patch) | |
tree | 725b8c0fc714593286a3a9259fcd8c4cc74037f3 /source3 | |
parent | 89e57a8fad2be4e36a726822072548d7a64bf68f (diff) | |
download | samba-8608fd87b0ba43e128b984e314047589e607f377.tar.gz samba-8608fd87b0ba43e128b984e314047589e607f377.tar.bz2 samba-8608fd87b0ba43e128b984e314047589e607f377.zip |
s3-samr: a level 18 password set needs to set the pwdlastset as well.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 513634019b..25bbc6eeac 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -3729,6 +3729,8 @@ static NTSTATUS set_user_info_18(struct samr_UserInfo18 *id18, if (!pdb_set_nt_passwd(pwd, out.data, PDB_CHANGED)) { return NT_STATUS_ACCESS_DENIED; } + + pdb_set_pass_last_set_time(pwd, time(NULL), PDB_CHANGED); } if (id18->lm_pwd_active) { @@ -3743,6 +3745,8 @@ static NTSTATUS set_user_info_18(struct samr_UserInfo18 *id18, if (!pdb_set_lanman_passwd(pwd, out.data, PDB_CHANGED)) { return NT_STATUS_ACCESS_DENIED; } + + pdb_set_pass_last_set_time(pwd, time(NULL), PDB_CHANGED); } if (id18->password_expired) { |