2 Sep
2011
2 Sep
'11
6:08 a.m.
If you google for "rlm_exec" then the first hit is: http://wiki.freeradius.org/Rlm_exec which tells you everything.
I would like to make a script for example: if (% {User-Name} == "Foo") {
echo "Hello Foo" }
Where do you want "Hello Foo" to be echoed to?? To a file?? In that case you can create a script like this: #!/bin/sh echo "Hello Foo" >>/tmp/output.txt and you can execute it using rlm_exec, but it's not very useful. Perhaps you want to include a message in the RADIUS reply? Then try sending back a Reply-Message attribute (although normally this will only make it back to the NAS and never be seen by the end-user) #!/bin/sh echo 'Reply-Message = "Hello Foo"' Brian.