help with xlat

Alan DeKok aland at deployingradius.com
Wed Dec 9 17:19:07 CET 2020


On Dec 9, 2020, at 10:50 AM, Matt Zagrabelny via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> 
> Greetings FR-users,
> 
> I've configured my linelog module as such:
> 
> message {
>        Access-Request = "%S Access Request from calling station
> %{Calling-Station-Id:-bar}"
> }
> 
> but the logging fails:
> 
> (0) linelog: ERROR: %S Access Request from calling station
> %{Calling-Station-Id:-bar}
> (0) linelog: ERROR:                                          ^ Unknown
> module
> (0)     [linelog] = fail

  Yup.

> According to the wiki, I feel like the above configuration should work:
> 
> https://wiki.freeradius.org/config/run_time_variables#conditional-syntax
> 
> Any ideas what I'm doing wrong?

  The wiki is _way_ out of date.  I've fixed it.

  See also "man unlang", which has the correct syntax:

	...%{%{Calling-Station-Id}:-bar}"

  Alan DeKok.




More information about the Freeradius-Users mailing list