23 Jun
2007
23 Jun
'07
8:08 p.m.
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