On Fri, 20 Aug 2004, Kiran Maraju wrote:
> ---------------------------------------------------------------
>
> Client ----> squid Box ----> proxy ( apache ) -----> real server
> user authentication
> ---------------------------------------------------------------
>
> This is my configuration. whatever client requests squid forwards to upsteam
> proxy , there user authentication is at proxy(apache) . In squid logs i could
> only able to see the "-" in the user name filed. User name is coming in
> apache.log.(proxy log ).
>
> Q1) Is there any way to get Username in squid access log. how to achieve this,
> if not whaere the coding modifications should take place..?
You can write an external_acl helper automatically decoding the username
of basic or digest authentication and returning it in the user attribute.
This will make Squid log it in access.log.
> Q2) i tried to use log_mime_hdrs on. there i could get encoded string of user
> authentication. i am using basic authentication. how to decode the string..
basic authentication is simply base64 encoded login:password.
Regards
Henrik
Received on Fri Aug 20 2004 - 02:52:17 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT