[squid-users] username in logformat and error template

From: Alan <lameventanas_at_gmail.com>
Date: Thu, 2 Aug 2012 18:02:00 +0900

I am having trouble the username tags in logformat and error templates.

The logformat documentation says that %ul is the username from
authentication, but in my experience when there is an authentication
failure this is filled with whatever the user tried to authenticate
with instead of being empty, is this intended?
On the other hand, %ue is only filled when the user has been
authenticated, which is what I want.

However it seems I am out of luck with custom errors substitutions,
there is no equivalent to the %ue from logformat.
%a is replaced by the username even when authentication failed, just
like %ul in logformat.
I need to distinguish quickly (from the error screen as opposed to the
logs) between authentication and authorization (acl) failures.

BTW I am aware of the %m and %o tags, I am still looking for the %ue
tag behavior.

Received on Thu Aug 02 2012 - 09:02:07 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 02 2012 - 12:00:02 MDT