[squid-users] Authenticating from Perl

From: Kevin Gordon <kevin.gordon@dont-contact.us>
Date: Wed, 6 Sep 2006 20:32:32 -0500

Hey ,
 I am trying to do a simple authentication script in perl.

The Code

#!/usr/bin/perl
$| = 1;

$userInfo = <STDIN>;

open(lg, ">what.log");
        print lg "$userInfo\n";
close(lg);

print "OK";

With this code I'd assume that it would always authenticate no matter
what since it statically prints OK
I have the what.log file being used to simply show that squid
connected to the perl script fine (which it does).

When I run squid I get prompted to authenticate but no matter what I
enter it always continues to ask me to authenticate.

Any suggestions?
Received on Wed Sep 06 2006 - 20:12:24 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:03 MDT