proper syntax for variables

Alan DeKok aland at deployingradius.com
Fri Dec 21 10:06:59 CET 2007


Duane Cox wrote:
> I have a question about the variables, and perhaps they have changed because
> all the new docs show another way.
> 
> What is correct:
> 
> %{NAS-Port:-%{NAS-Port-Id}}  or  %{%{NAS-Port}:-%{NAS-Port-Id}}

  The documentation says that the new style is the one to use.

> Also this one...
> 
> %{Acct-Output-Octets:-0}  or %{%{Acct-Output-Octets}:-0}
> 
> Or will any of the above be OK?

  The old style MAY continue to work for a while.  The change to the new
style was made because there are situations where the old style just
cannot work.

> I wasn't sure if I needed to change any of my variables prior to the upgrade
> to 2.0.0 pre2

  If you have simple attribute expansion (not %{sql: ....} ), then the
old-style should be OK.  I would suggest to fix the expansion at some
point, though.

  Alan DeKok.



More information about the Freeradius-Users mailing list