Variable/Attribute expansion in SQL

Alan DeKok aland at deployingradius.com
Mon Mar 7 21:13:16 UTC 2022


On Mar 7, 2022, at 4:07 PM, Antônio Modesto <modesto at hubsoft.com.br> wrote:
> 
> Do you guys know if there is a way to have variable expansion working when attributes are fetched from a SQL database? For example:
> 
> Reply-Message := "Hello, %{User-Name}"
> 
> I have a situation where I must use something like this only for a specific type of NAS. I could edit the configuration to do this conditionally in the post-auth section, but if it is possible with SQL it would be a cleaner solution.

  Yes.  Just put the strings into SQL, and they will be expanded.

  Alan DeKok.



More information about the Freeradius-Users mailing list