help with xlat

classic Classic list List threaded Threaded
3 messages Options
| Threaded
Open this post in threaded view
|

help with xlat

Users mailing list
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

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?

Thanks for the help!

-m
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: help with xlat

Alan DeKok-2
On Dec 9, 2020, at 10:50 AM, Matt Zagrabelny via Freeradius-Users <[hidden email]> 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.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: help with xlat

Users mailing list
On Wed, Dec 9, 2020 at 10:19 AM Alan DeKok <[hidden email]>
wrote:

> On Dec 9, 2020, at 10:50 AM, Matt Zagrabelny via Freeradius-Users <
> [hidden email]> wrote:
>
>   The wiki is _way_ out of date.  I've fixed it.
>

ahh.

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

Sure. I should have checked there.

Thanks for the fast help and support!

-m
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html