Module exec and documentation not found or example

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

If you google for "rlm_exec" then the first hit is:
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:

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)

echo 'Reply-Message = "Hello Foo"'


More information about the Freeradius-Devel mailing list