<div dir="ltr">I have an exec script that returns a User-Name. FreeRADIUS passes the User-Name to my script (ie MyOldUsername) and my script changes it (ie MyNewUsername). In my logs I see<div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div dir="ltr"><div>Exec-Program-Wait: value-pairs: User-Name = MyNewUsername</div></div></blockquote><br>
<div>so I know my script is working and returning correctly. My problem is that FreeRADIUS doesn't take MyNewUsername from the script and MyOldUsername gets inserted into the radacct table. Below is my exec config. My script is a PHP script on a web server that gets called via wget. One thing that I'm not sure of is what input_pairs and output_pairs should be set to. I see that "config" and "reply" are valid options, but what is the difference between them? What other information is needed in order to troubleshoot this problem?</div>
<div><br></div><div><div>exec {</div><div> wait = yes</div><div> program = `/usr/bin/wget -q -O - <a href="http://127.0.0.1/%{Calling-Station-Id}" target="_blank">127.0.0.1/%{Calling-Station-Id}`</a></div><div>
shell_escape = yes</div>
<div> input_pairs = config</div><div> output_pairs = config</div><div>}</div></div>