sql expansion with query string stored in attribute?

Alan DeKok aland at deployingradius.com
Wed Oct 19 08:45:16 CEST 2011


Fajar A. Nugraha wrote:
> Is it possible to use sql expansion with query stored in a radius
> attribute (e.g. Tmp-String-0)?

  Not currently.

> For example, I have something like this to store my local
> configuration variables:
> 
> local-config {
> sql-now="select concat('Current time = ',now())"
> }

  You can use that as a *load-time* expansion, via ${...}.   But it
means you can't change it at run-time.

  That's mainly used to abstract configuration on different machines.

> Is there a way to change which characters remain unencoded? Thanks.

  That's what "safe_characters" is for.

  Alan DeKok.



More information about the Freeradius-Users mailing list