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

Reply via email to