summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-08-23 23:02:44 +0200
committerSimo Sorce <idra@samba.org>2010-08-30 10:43:54 -0400
commit20e7b4ec744dead1544a4b7625dc3fcb5d802418 (patch)
treed38ba19dae27bb8c0d96139797837cdaa3a69776 /source3/auth
parentc5cfad142c6bc5cd4819726cf2444108bc7639c3 (diff)
downloadsamba-20e7b4ec744dead1544a4b7625dc3fcb5d802418.tar.gz
samba-20e7b4ec744dead1544a4b7625dc3fcb5d802418.tar.bz2
samba-20e7b4ec744dead1544a4b7625dc3fcb5d802418.zip
s3-auth: The unlock of the account is now done by the get_sampwnam call.
Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/check_samsec.c7
1 files changed, 2 insertions, 5 deletions
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();