Setting a conditional variable

Alan DeKok aland at deployingradius.com
Sun Oct 21 08:04:17 CEST 2007


mozart at pisem.net wrote:
> Hi everyone! I'm trying to set a conditional variable in my sql.conf.

  The configuration files don't support conditional variables.   Perhaps
you mean something else.

> According to value of  %{NAS-Port-Type} my  variable (i.e. MYVAR) should
> be assigned to value returned by different programs through 'exec'
> module. I couldn't find any examples how to do it. So I will appreciate
> if someone helped me.

  %{exec:/path/to/program foo}  will do something like what you want.

  Alan DeKok.



More information about the Freeradius-Users mailing list