[squid-users] external_acl_type

From: Pieter De Wit <pieter@dont-contact.us>
Date: Tue, 15 Nov 2005 16:58:49 +0200

Hello List,
 
Can someone please point me to a resource describing what an external
acl program must return and how. In my quest to "bind" an IP to a
username I have created the following:
 
ip_to_user.sh
#!/bin/bash
 
while [ 1 ]
do
        while read ip
        do
                ip_done="0";
 
                echo "Auth'ing $ip..." >> /var/log/ip_to_user.log
 
                if [ $ip = "1.2.3.4" ]; then
                        echo "OK user=user"
                        echo "OK user=user" >> /var/log/ip_to_user.log
                        ip_done="1";
                fi
        done
done

That seems to work, but at some stage all 5 of them use 100% CPU - even
when they are not auth'ing.

Did I miss something ?

Thanks,

Pieter
“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.net/legal/email.aspx "
Received on Tue Nov 15 2005 - 07:58:48 MST

This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:09 MST