Help on using exec modules

nghiapt nghia.pham at exe.com.vn
Sun Oct 24 22:28:43 CEST 2010


Hello,

I'm using FreeRADIUS version 2.1.7 on a CentOS 5.5 distro.
I'm trying to execute a simple shell script when RADIUS send an
Access-Accept packet, but failed.

I'm modified /modules/echo like this:

...
program = "/bin/echo %{User-Name} >> /a.txt"
...

and have add to sites-available/default, under post-auth:

...
post-auth {
        exec
        echo
...

the log is:

+- entering group post-auth {...}
++[exec] returns noop
[echo]  expand: %{User-Name} -> test
++[echo] returns ok
Sending Access-Accept of id 224 to 127.0.0.1 port 60465
        Reply-Message = "Hello, %{User-Name}"
Finished request 1.
Going to the next request
Waking up in 4.9 seconds.
Cleaning up request 1 ID 224 with timestamp +15
Ready to process requests.

However, find no output file anywhere.

What have I forgotten to configure?

Please help, Thanks in advance. 
-- 
View this message in context: http://freeradius.1045715.n5.nabble.com/Help-on-using-exec-modules-tp3234663p3234663.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.



More information about the Freeradius-Users mailing list