Basic bourne shell-based authenticator module

From: BSD Freak <bsd-freak@dont-contact.us>
Date: Thu, 13 Feb 2003 13:43:21 +1100

Hi all,

I am have written a very basic squid authenticator module. Code is as
follows:

#!/bin/sh
PASSWORDFILE="/usr/local/etc/squid/users.txt"
TEST="123"
while [ ! -z $TEST ]
do
 read AUTH
 if [ ! -z "`grep -x "$AUTH" $PASSWORDFILE`" ]; then
  echo "OK"
 else
  echo "ERR"
 fi
done

It all works fine and authenticates users from a plain text file
(/usr/local/etc/squid/users.txt) whose format is:

user password
user password

The only problem is that the authenicator module processes that squid
spawns don't get killed when squid is killed. It also seems to keep
opening many more authenicator module processes while it runs even
though I have limited it toi 5 children in squid.conf.

Any suggestions?

Many thanks in advance......

---------------------------------------------------------------------
Would you like to receive faxes to your personal email address?
You can with mBox. Visit http://www.mbox.com.au/fax
Received on Thu Feb 13 2003 - 03:47:03 MST

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