Module exec and documentation not found or example

Brian Candler B.Candler at pobox.com
Fri Sep 2 12:08:20 CEST 2011


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.



More information about the Freeradius-Devel mailing list