summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-13 11:55:59 +0000
committerGerald Carter <jerry@samba.org>2007-05-13 11:55:59 +0000
commit8780ed64819ffd67ea01c3cff7ef7bcc975c1efd (patch)
tree4966fe2a57f6733381582d2b73f1364196411b4c
parent0505ba880607251f23f1efd09ad0a64761e082c7 (diff)
downloadsamba-8780ed64819ffd67ea01c3cff7ef7bcc975c1efd.tar.gz
r22822: merge vl's fix for BUG 4613
-rw-r--r--source/auth/auth_util.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c
index 35790749d1d..87fb9e55b7b 100644
--- a/source/auth/auth_util.c
+++ b/source/auth/auth_util.c
@@ -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"));