From: wessels <> Date: Thu, 14 Jan 1999 05:13:38 +0000 (+0000) Subject: From: Dancer X-Git-Tag: SQUID_3_0_PRE1~2408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aed86a7cbe857e16b001fe06103d641835ee1278;p=thirdparty%2Fsquid.git From: Dancer It turns out that if you are using an external authenticator, the username is only logged on _subsequent_ (that is, cached) authentication hits. If the user's authentication credentials expire from the cache, their next (initially authenticated) request doesn't log any user info. I'm pretty sure that this behaviour is unintentional. Here's a patch: --- diff --git a/src/acl.cc b/src/acl.cc index d273e81ca0..b14ece1cec 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,6 +1,6 @@ /* - * $Id: acl.cc,v 1.193 1999/01/12 23:38:35 wessels Exp $ + * $Id: acl.cc,v 1.194 1999/01/13 22:13:38 wessels Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -1045,6 +1045,7 @@ aclMatchProxyAuth(wordlist * data, const char *proxy_auth, acl_proxy_auth_user * /* password was checked and did match */ debug(28, 4) ("aclMatchProxyAuth: user '%s' validated OK\n", user); /* store validated user in hash, after filling in expiretime */ + xstrncpy(checklist->request->user_ident, user, USER_IDENT_SZ); auth_user->expiretime = current_time.tv_sec + Config.authenticateTTL; hash_join(proxy_auth_cache, (hash_link *) auth_user); /* Continue checking below, as normal */