add quote to User-Name
Alan DeKok
aland at deployingradius.com
Sat May 6 20:54:12 CEST 2017
On May 6, 2017, at 12:48 PM, Dudás Péter <peter.pdudas at gmail.com> wrote:
>
> for running external script I have to quote the content of the User-Name
> (via the Exec module).
> So in case User-Name is John Doe (received from NPS) I want to have it
> like "John Doe".
>
> Tried:
> User-Name := "%{User-Name}" # this is not working.
>
> Is there a way to do this?
Don't edit the User-Name in FreeRADIUS. Instead, change the User-Name passed to the script.
Execute the program as:
/path/to/progran \"%{User-Name}\"
But saying what you've tried (NOT just one line), and providing the debug log would be useful, too.
Alan DeKok.
More information about the Freeradius-Users
mailing list