Re: [SQU] Perl authentication

From: Robert Collins <>
Date: Sun, 28 Jan 2001 10:36:34 +1100

Yes. See

For a previous discussion.

There used to be an example perl script on the squid-cache site, but I must be going blind :-]

Quick points:

1. I've just checked the basic auth code, and I think you'll be able to get away with usernames with spaces within the squid code.
(as long as the space is not at the end of the username).
2. Squid writes the user details as "username password\n" to the authenticator. If you expect to handle usernames with spaces, your
perl authenticator will have to do some fancy checking to tell the difference between user=foo bar password=tux and user=foo
password=bar tux. If you want to have squid delimit the usernames differently, say with a ':' then it's a quick edit in
authenticate.c (for squid 2.3/2.4) in the funciton authenticateStart.


----- Original Message -----
From: "Devin Teske" <>
To: <>
Sent: Sunday, January 28, 2001 9:43 AM
Subject: [SQU] Perl authentication

> is it possible to set it up so that I authenticate users through a perl
> script?
> maybe
> authentication_program perl /my/perl/ /etc/passwd
> It sounds like it might work.
> Thanks,
> Devin Teske
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> --
> To unsubscribe, see

To unsubscribe, see
Received on Sat Jan 27 2001 - 16:39:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:37 MST