Quoting Dustin Doris <[EMAIL PROTECTED]>: > > > On Sun, 16 Jan 2005, Emman S. Loloy wrote: > > > Hi, > > > > > > i have a problem using Exec-Program-Wait Attribute.. any comments or > suggestion how to fix this problem. here's my configuration. > > > > /tmp/checkras > > > > #!/bin/sh > > if [ $1 == "192.168.0.1" ] ; then > > exit -1 ; #fail > > elif [ $1 == "192.168.0.2" ]; then > > exit -1 ; #fail > > fi > > exit 0 ; #pass > > > > > > Processing the session section of radiusd.conf > > modcall: entering group session for request 1008 > > radius_xlat: 'dialup' > > rlm_sql (sql): sql_set_user escaped user --> 'dialup' > > radius_xlat: 'SELECT COUNT(*) FROM radacct WHERE UserName='dialup' AND > AcctStopTime = 0' > > rlm_sql (sql): Reserving sql socket id: 1 > > rlm_sql (sql): Released sql socket id: 1 > > modcall[session]: module "sql" returns ok for request 1008 > > modcall: group session returns ok for request 1008 > > radius_xlat: '192.168.0.1' > > Exec-Program output: Exec-Program: FAILED to execute /tmp/checkras: Bad > address > > Exec-Program-Wait: plaintext: Exec-Program: FAILED to execute > /tmp/checkras: Bad address > > Exec-Program: Abnormal child exit: No child processes > > Login incorrect (external check failed): [dilaup/foobar] (from client > foobar port 125) > > Delaying request 1008 for 1 seconds > > Finished request 1008 > > Going to the next request > > --- Walking the entire request list --- > > Waking up in 1 seconds... > > --- Walking the entire request list --- > > Waking up in 1 seconds... > > --- Walking the entire request list --- > > Cleaning up request 1006 ID 62 with timestamp 41e9f160 > > Sending Access-Reject of id 84 to 192.168.0.5:38613 > > Reply-Message := "Exec-Program: FAILED to execute /tmp/checkras: > Bad address\n" > > Waking up in 1 seconds... > > --- Walking the entire request list --- > > Cleaning up request 1007 ID 182 with timestamp 41e9f161 > > Waking up in 3 seconds... > > --- Walking the entire request list --- > > Cleaning up request 1008 ID 84 with timestamp 41e9f164 > > Nothing to do. Sleeping until we see a request. > > > > > > Thanks, > > > > Emman > > > Can you run that program from the command line?
yes i can run the program from the command. >Also, how are you calling it, can you paste your users file entry? am just adding an attribute Exec-Program-Wait := /tmp/checkras %n to run this program. I don't use the users file entry, instead am using mySQL for may attribute entry, acctually this is working from the previous version of freeradius-1.0.1. right now am using the cvs version. don't know what is wrong my setup.. Thanks, Emman > > > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > ********** This message was sent through GLOBALink Webmail Service. If you are a GLOBALink Internet subscriber or among its affiliates, go to http://webmail.globalink.net.ph to check emails. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html