From: robertc <> Date: Fri, 31 Aug 2001 05:00:36 +0000 (+0000) Subject: Reset basic user scheme credentials to unattempted in the event of authentication... X-Git-Tag: SQUID_3_0_PRE1~1421 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=14f3d6ea5be7063a2c9479d8b3b9d66eb194d73b;p=thirdparty%2Fsquid.git Reset basic user scheme credentials to unattempted in the event of authentication failure --- diff --git a/src/auth/basic/auth_basic.cc b/src/auth/basic/auth_basic.cc index bd569ddef4..2bd3e9df42 100644 --- a/src/auth/basic/auth_basic.cc +++ b/src/auth/basic/auth_basic.cc @@ -1,5 +1,5 @@ /* - * $Id: auth_basic.cc,v 1.9 2001/08/03 15:13:06 adrian Exp $ + * $Id: auth_basic.cc,v 1.10 2001/08/30 23:00:36 robertc Exp $ * * DEBUG: section 29 Authenticator * AUTHOR: Duane Wessels @@ -515,6 +515,10 @@ authenticateBasicDecodeAuth(auth_user_request_t * auth_user_request, const char basic_auth->passwd = local_basic.passwd; } else xfree(local_basic.passwd); + if (auth_user->flags.credentials_ok == 3) { + debug(29, 4) ("authBasicDecodeAuth: last attempt to authenticate this user failed, resetting auth state to unchecked\n"); + auth_user->flags.credentials_ok = 0; + } } /* link the request to the user */ auth_user_request->auth_user = auth_user;