From 8190e0466330fbdfb1beed7a073122c752d7fa31 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 12 May 2007 19:53:47 +0000 Subject: r22819: Fix Bug 4613. We just dumped the must change & friends. With the pass_last_changed == 0 we now return "Change now!" instead of "Change never" (This used to be commit 450e4d94f64f86a3dd709265d15ed5082d4b53e8) --- source3/auth/auth_util.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'source3') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 399cf3ad9e..1795322b55 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1484,6 +1484,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")); -- cgit