Re: [squid-users] TAG:deny_info - another question

From: OTR Comm <>
Date: Thu, 26 Feb 2004 10:54:37 -0700


> Unfortunately there is no % tag for the user name. Should not be hard to
> add one I guess. See src/errorpage.c.

I am using squid-3.0 so I looked in and found the
errorConvert(char token, ErrorState * err) function.

I am not too good with c++ so please excuse my ignorance and basic

I see how the URL is setup in the case for 'U'.
I see that

HttpRequest *r = err->request;

I see in HttpRequest.h that HttpRequest is a class with

String extacl_user; /* User name returned by extacl lookup */

Now, can I setup another case in errorConvert for the username (maybe
'C' for client ID) and reference 'r->extacl_user' to get the username?


Murrah Boswell
Received on Thu Feb 26 2004 - 11:01:58 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:03 MST