From cf2ec80d4e8733bbfd98d9737fa7e99712b72eb3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Oct 2001 13:07:46 +0000 Subject: honor the ACB_PWNOEXP flag in smbpasswd (This used to be commit 70b7c900c907c4620faa7d82845296298b3820ff) --- source3/auth/auth_sam.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/auth/auth_sam.c') diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index 304e5be44b..835ade739f 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -246,8 +246,7 @@ NTSTATUS sam_account_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *user SAFE_FREE(workstation_list); } - - { + if (!(pdb_get_acct_ctrl(sampass) & ACB_PWNOEXP)) { time_t must_change_time = pdb_get_pass_must_change_time(sampass); time_t last_set_time = pdb_get_pass_last_set_time(sampass); -- cgit