On Tue, 10 May 2005, Ryan Lamberton wrote:
As you can see I took another auth script and modified it. Even thought I get the same result as the sh script I tried to use this and it caused problems. Some of the base64 strings have the @familink.net in them as part of the username. Can Squid use that as a username?
Yes. Up to 64 characters is allowed.
What problems did you see in more detail?
Be warned of spaces,quotes and newlines. These requires special attention. The specification of the format you need to return to Squid is detailed in the description of the external_acl_type directive.
Just so you know, my only programming was in fortran!
Programming in procedural languages is mostly the same, just different syntax, so this is a benefit for you.
The perl language is very well documented, perhaps too well...
"man perlsyn" for detailed syntax description
"man perlop" for description of the available operators (compare/add/substract etc)
"man perltoc" for a table of contents of all the manuals included in the perl distribution if you need to look for something else.
there is also plenty of information on the web, and copy-pasting from other scripts doing similar things is also very helpful.
Regards Henrik