An external helper return OK or ERR in the stdin. Possibly more, I don't know. Is someone can tell more about it? If you want to test with a script shell you have to read as you bo but test also that $ip contains something... it's better. Regards. Ghislain Garçon Pieter De Wit wrote : >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 " > > >