From 3ede4ffe969f806ba2363b62c09673c32a4ec296 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 15 Nov 2011 13:27:14 -0800 Subject: Fix bug #8561 - Password change settings not fully observed. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Nov 16 00:22:41 CET 2011 on sn-devel-104 --- source3/rpc_server/samr/srv_samr_nt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_server/samr/srv_samr_nt.c') diff --git a/source3/rpc_server/samr/srv_samr_nt.c b/source3/rpc_server/samr/srv_samr_nt.c index 58892b7443..ebe6e451d4 100644 --- a/source3/rpc_server/samr/srv_samr_nt.c +++ b/source3/rpc_server/samr/srv_samr_nt.c @@ -2855,7 +2855,7 @@ static NTSTATUS get_user_info_21(TALLOC_CTX *mem_ctx, unix_to_nt_time(&r->allow_password_change, pdb_get_pass_can_change_time(pw)); must_change_time = pdb_get_pass_must_change_time(pw); - if (must_change_time == get_time_t_max()) { + if (pdb_is_password_change_time_max(must_change_time)) { unix_to_nt_time_abs(&force_password_change, must_change_time); } else { unix_to_nt_time(&force_password_change, must_change_time); -- cgit