From: Francesco Chemolli Date: Thu, 3 Sep 2015 16:56:10 +0000 (+0200) Subject: Converted Basic auth to UserNameCache lookup X-Git-Tag: SQUID_4_0_1~21^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56f3e8ad3c5f166ad7cc7a726de36109d862ded8;p=thirdparty%2Fsquid.git Converted Basic auth to UserNameCache lookup --- diff --git a/src/auth/basic/Config.cc b/src/auth/basic/Config.cc index abbf0b7651..c409417f54 100644 --- a/src/auth/basic/Config.cc +++ b/src/auth/basic/Config.cc @@ -19,6 +19,7 @@ #include "auth/basic/UserRequest.h" #include "auth/Gadgets.h" #include "auth/State.h" +#include "auth/UserNameCache.h" #include "cache_cf.h" #include "charset.h" #include "helper.h" @@ -246,7 +247,7 @@ Auth::Basic::Config::decode(char const *proxy_auth, const char *aRequestRealm) /* now lookup and see if we have a matching auth_user structure in memory. */ Auth::User::Pointer auth_user; - if ((auth_user = findUserInCache(lb->userKey(), Auth::AUTH_BASIC)) == NULL) { + if (!(auth_user = Auth::Basic::User::Cache()->lookup(lb->SBUserKey()))) { /* the user doesn't exist in the username cache yet */ /* save the credentials */ debugs(29, 9, HERE << "Creating new user '" << lb->username() << "'");