Re: [squid-users] log clients ip from helper program

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 10 Aug 2006 11:16:33 +0200

On Thu, 2006-08-10 at 14:57 +0700, Beast wrote:

> Is there any way to log client's IP from within a helper program.

Not from within auth helpers no. The data isn't send there as the
authentication scheme cache does not account for the client IP, only the
login+password so having the IP sent would confuse some helper authors
into thinking that the IP could be used as part of the authentication
process.

> I want to log sucessfull/failed authentication and IP of the client.

This is logged in access.log. A 407 with a username is a failed login.
Anything else with a username is a successful login. Requests without a
username is not authenticated at all.

Regards
Henrik
Received on Thu Aug 10 2006 - 03:16:14 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT