Re: [squid-users] Binding IP address to username

2005-11-14 Thread Henrik Nordstrom

On Wed, 9 Nov 2005, Pieter De Wit wrote:

I would like to know how I can bind an IP address to a username in 
squid. So let's say I have a user called user1 and a machine on IP 
1.2.3.4. I would like squid to log any requests that come from 1.2.3.4 
as if the user user1 logged in.


You can do this via an external acl helper returning the username for the 
IP.


See external_acl_type directive for details.

This also controls how long Squid should maintain the binding before 
quering the helper again.


Regards
Henrik


Re: [squid-users] Binding IP address to username

2005-11-10 Thread Matus UHLAR - fantomas
On 09.11 13:45, Pieter De Wit wrote:
 I would like to know how I can bind an IP address to a username in
 squid. So let's say I have a user called user1 and a machine on IP
 1.2.3.4. I would like squid to log any requests that come from 1.2.3.4 as
 if the user user1 logged in.

Why? do you mean this as form of weak user authentication?

You probably can turn on log_fwdn and set up hosts file where you define
each ip as username so in IP field you'll have usernames.

also, you can parse log files after rotation and replace IPs with users, or
change ident fields to user, accorging to IP connected. Simple awk/perl
script can do that.

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The only substitute for good manners is fast reflexes. 


[squid-users] Binding IP address to username

2005-11-09 Thread Pieter De Wit
Hello Everyone,

I would like to know how I can bind an IP address to a username in squid. So 
let's say I have a user called user1 and a machine on IP 1.2.3.4. I would like 
squid to log any requests that come from 1.2.3.4 as if the user user1 logged in.

Thanks,

Pieter De Wit

�This e-mail is sent on the Terms and Conditions that can be accessed by 
Clicking on this link http://www.vodacom.net/legal/email.aspx