upgrade unlang from 2.1.12 to 3.0.14

Alan DeKok aland at deployingradius.com
Wed Jul 5 16:42:34 CEST 2017


=On Jul 5, 2017, at 10:28 AM, <adrian.p.smith at bt.com> <adrian.p.smith at bt.com> wrote:
> 
> 
>> 3. How can I now do "client:operator" ?
> 
>  That still works.
> 
>  Alan DeKok.
> 
> /home/adrian/freeradius-server-3.0.14/etc/raddb/sites-enabled/default[568]: Parse error in condition
> /home/adrian/freeradius-server-3.0.14/etc/raddb/sites-enabled/default[568]: ... && ( &Tunnel-Type == "VLAN" ) && ( &client:shortname != "WLC") ) {
> /home/adrian/freeradius-server-3.0.14/etc/raddb/sites-enabled/default[568]:                                         ^ Invalid list qualifier

  The client:shortname isn't an attribute.  So you can't use &client:shortname.

  You still need to do "%{client:shortname}"  Because it's a string expansion.

  On a related note, there are a *lot* of people and third-party sites who recommend using "%{Attribute-Name}" to check values in attributes.  I have no idea why.  Just using the name has worked since 2.0.0, and has been *documented* as working since 2.0.0.

  Alan DeKok.




More information about the Freeradius-Users mailing list