%{check:Attribute-Name} not working in V3

Alan DeKok aland at deployingradius.com
Mon Jun 15 01:34:33 CEST 2015


On Jun 14, 2015, at 6:23 PM, Jake He <jake.he at gmail.com> wrote:
> I am trying to migrate from version 2 to version 3.

  raddb/README.rst is a good start.

> The same unlang code worked in version 2. However in version 3 the same
> code does not work.
> 
> This is the error:
> 
> /etc/freeradius/sites-enabled/default[406]: Failed parsing expanded string:
> /etc/freeradius/sites-enabled/default[406]: %{sql:SET @reset_date =
> '%{check:Reset-Date}'; SELECT IFNULL((sum(acctinputoctets)+sum(acctoutp...
> /etc/freeradius/sites-enabled/default[406]: ^ Unknown module
> 
> If I remove check the parser does not throw errors.

  See "man unlang".  You should use %{control:Reset-Date} 

  Alan DeKok.



More information about the Freeradius-Users mailing list