]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-samr: a level 18 password set needs to set the pwdlastset as well.
authorGünther Deschner <gd@samba.org>
Tue, 9 Dec 2008 11:39:47 +0000 (12:39 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 11 Dec 2008 18:15:42 +0000 (19:15 +0100)
Guenther

source/rpc_server/srv_samr_nt.c

index c26b5b05c3a3c3a2b95a904b9ed993a946090893..9002743e173289cebb7e1b24447147f40568ee04 100644 (file)
@@ -3837,6 +3837,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) {
@@ -3851,6 +3853,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) {