r22822: merge vl's fix for BUG 4613
authorGerald Carter <jerry@samba.org>
Sun, 13 May 2007 11:55:59 +0000 (11:55 +0000)
committerGerald Carter <jerry@samba.org>
Sun, 13 May 2007 11:55:59 +0000 (11:55 +0000)
source/auth/auth_util.c

index 35790749d1d1c0469c5544ca0b7a28ab55e2d217..87fb9e55b7bb23855b793df7b3b54a77b47fa2be 100644 (file)
@@ -1874,6 +1874,30 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
                return NT_STATUS_NO_MEMORY;
        }
 
+       if (!pdb_set_pass_last_set_time(
+                   sam_account,
+                   nt_time_to_unix(info3->pass_last_set_time),
+                   PDB_CHANGED)) {
+               TALLOC_FREE(sam_account);
+               return NT_STATUS_NO_MEMORY;
+       }
+
+       if (!pdb_set_pass_can_change_time(
+                   sam_account,
+                   nt_time_to_unix(info3->pass_can_change_time),
+                   PDB_CHANGED)) {
+               TALLOC_FREE(sam_account);
+               return NT_STATUS_NO_MEMORY;
+       }
+
+       if (!pdb_set_pass_must_change_time(
+                   sam_account,
+                   nt_time_to_unix(info3->pass_must_change_time),
+                   PDB_CHANGED)) {
+               TALLOC_FREE(sam_account);
+               return NT_STATUS_NO_MEMORY;
+       }
+
        result = make_server_info(NULL);
        if (result == NULL) {
                DEBUG(4, ("make_server_info failed!\n"));