From: Volker Lendecke Date: Sat, 12 May 2007 19:53:47 +0000 (+0000) Subject: r22819: Fix Bug 4613. We just dumped the must change & friends. With the X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~479 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=450e4d94f64f86a3dd709265d15ed5082d4b53e8;p=thirdparty%2Fsamba.git 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" --- diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index 399cf3ad9e5..1795322b55a 100644 --- a/source/auth/auth_util.c +++ b/source/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"));