Exec-Program-Wait

Michael Alexeev michael.alexeev at gmail.com
Sun Jun 24 02:08:32 CEST 2007


Hi all,

I am having trouble with macro substitution in Exec-Program-Wait
attribute. For some reason %C{User-Name} is expanded to
"localhost{User-Name}"  string instead of real user name. Here is an
excerpt from the users config file:

jsullivan       User-Password == mypass
            Exec-Program-Wait = "/bin/radius_chain %C{User-Name}"

where /bin/radius_chain simply dumps the first parameter to the file:

#!/bin/sh
param=$1
echo "param=$param" > /bin/test/test.txt
exit 0

The content of the /bin/test/test.txt is

param=localhost{User-Name}

instead of expected
param=jsullivan

Any ideas what is going on?

I am using FreeRadius Version 1.1.6 on linux

Thanks,
Mike



More information about the Freeradius-Users mailing list