Re: [squid-users] authentication program

From: Henrik Nordstrom <[email protected]>
Date: 26 Mar 2003 12:52:06 +0100

Works here using very similar scripts..

Note: Upgrade to Squid-2.5 is recommended.

Regards
Henrik

ons 2003-03-26 klockan 11.16 skrev Ramzi S. Abdallah:
> Hi all,
>
> I need some help in configuring squid to authenticate users using an
> external authentication program. I wrote a simple perl script that
> authenticate users against a MySQL database but does not seem to be
> working properly. What's happening is that squid keeps rejecting the
> username and password and access gets denied. At first I thought that
> the perl script is not functioning properly so I replaced it with this
> simple script that always return "OK" as a result but still not working.
>
> #!/usr/bin/perl -w
>
> $|=1;
>
> while (<STDIN>) {
> chomp;
> my @login = split(/ /);
> print "OK\n";
> }
>
>
> Following is my squid.conf config that relates to authentication:
>
> authenticate_program /etc/squid/scripts/authsql
>
> acl pass proxy_auth REQUIRED
> acl rocks_admin src 192.168.101.0/255.255.255.0
> acl auburn_edu src 192.168.104.0/255.255.255.0
>
> http_access allow rocks_admin
> http_access allow auburn_edu
> http_access allow pass
>
>
> Thank you for any help
>
> Ramzi

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Wed Mar 26 2003 - 04:52:16 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:20 MST