[squid-users] authentication program

From: Ramzi S. Abdallah <rsa@dont-contact.us>
Date: Wed, 26 Mar 2003 21:16:58 +1100

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
Received on Wed Mar 26 2003 - 03:19:12 MST

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