/usr/share/lightsquid/ip2name/ip2name.squidauth is in lightsquid 1.8-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #contributor: esl
#specialy for squid with turned on user authentication
#simple version
sub StartIp2Name() {
}
sub Ip2Name($$$) {
# $Lhost,$user,$Ltimestamp
my $Lhost=shift;
my $user =shift;
$user =URLDecode($user); #decode user name
return $user if ($user ne "-");
return $Lhost;
}
sub StopIp2Name() {
}
#warning !!!
1;
|