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

This is a discussion on Re: [squid-users] TAG:deny_info - another question - Solved within the Squid Users forums, part of the Web Server and Related Forums category; Hello, > Examples on how most of these can be accessed can be found in > ClientHttpRequest::logRequest() and clientPrepareLogWithRequestDetails() &...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2004
OTR Comm
 
Posts: n/a
Default Re: [squid-users] TAG:deny_info - another question - Solved

Hello,

> Examples on how most of these can be accessed can be found in
> ClientHttpRequest::logRequest() and clientPrepareLogWithRequestDetails()
> (both found in client_side.cc) where the information is prepared for
> logging in access.log.


Thanks Henrik - This was the lead I needed!

I found the code for access to the username in
clientPrepareLogWithRequestDetails and added another case in
errorConvert to pass the username:

<snip>

case 'C':
if (r->auth_user_request) {
if (authenticateUserRequestUsername(r->auth_user_request))
p =
xstrdup(authenticateUserRequestUsername(r->auth_user_request));
authenticateAuthUserRequestUnlock(r->auth_user_request);
r->auth_user_request = NULL;
} else {
p = "[unknown]";
}
break;

<snip>

So now my query string:

URL=http://216.19.43.110/cgi-bin/squidsearch/FD_Handler.cgi?url=%U&ident=%C

passes the username in %C

RESULTS FROM FD_Handler.cgi : 'QUERY_STRING :
url=http://www.usatoday.com/&ident=otrcomm'


Thanks for your help and patience,

Murrah Boswell
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0