from the debug mode i'm getting the following:

radius_xlat: '/var/radius/scripts/count.php edgars 10.5.8.103'
Exec-Program: /var/radius/scripts/count.php edgars 10.5.8.103
Exec-Program output: Exec-Program: FAILED to execute /var/radius/scripts/count.php: No such file or directory
Exec-Program-Wait: plaintext: Exec-Program: FAILED to execute /var/radius/scripts/count.php: No such file or directory
Exec-Program: returned: 1
Login incorrect (external check failed): [edgars/<no User-Password attribute>] (from client druums_testsss^edgars port 769 cli 1.1.1.2)


But as I said, this works if i'm using that box, where the data base is located, as an authenticator.
I'm running this script being in chroot '/gamma/edgars'. But tried to change the radreply Exec-Program value to '/gamma/edgars/var/radius/scripts/count.php' - the same problem.


On which machine is the script actually ecexuted - on the one i'm runnig the RADIUS server or where the DB is located?


Regards,

Edgars



Dustin Doris wrote:

Hello,

when trying to execute some script on each user login attempt using
local DB everythings works as it supposed to do. But if using another
RADIUS server as specifying to use the previously mentioned DB (like
remote DB), getting the following errors in the log file:

Error: Exec-Program: FAILED to execute /var....: No such file or directory

For users for which i've not set the Exec-Wait as a Reply attribute,
everything work perfectly.


Can someone point me could be the problem? Edgars




Looks like it can't find the script. Want to show us how you have it setup in the users file? Maybe some radiusd -X output as well.

- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html





- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to