summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
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) {