From 20e7b4ec744dead1544a4b7625dc3fcb5d802418 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 23 Aug 2010 23:02:44 +0200 Subject: s3-auth: The unlock of the account is now done by the get_sampwnam call. Signed-off-by: Simo Sorce --- source3/auth/check_samsec.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/auth/check_samsec.c b/source3/auth/check_samsec.c index 3b2f471812..8460110b06 100644 --- a/source3/auth/check_samsec.c +++ b/source3/auth/check_samsec.c @@ -403,9 +403,6 @@ NTSTATUS check_sam_security(const DATA_BLOB *challenge, nt_pw = pdb_get_nt_passwd(sampass); lm_pw = pdb_get_lanman_passwd(sampass); - /* see if autolock flag needs to be updated */ - if (pdb_get_acct_ctrl(sampass) & ACB_NORMAL) - pdb_update_autolock_flag(sampass, &updated_autolock); /* Quit if the account was locked out. */ if (pdb_get_acct_ctrl(sampass) & ACB_AUTOLOCK) { DEBUG(3,("check_sam_security: Account for user %s was locked out.\n", username)); @@ -441,7 +438,7 @@ NTSTATUS check_sam_security(const DATA_BLOB *challenge, pdb_update_bad_password_count(sampass, &updated_badpw); } - if (updated_autolock || updated_badpw){ + if (updated_badpw){ NTSTATUS status; become_root(); @@ -463,7 +460,7 @@ NTSTATUS check_sam_security(const DATA_BLOB *challenge, updated_badpw = True; } - if (updated_autolock || updated_badpw){ + if (updated_badpw){ NTSTATUS status; become_root(); -- cgit