Condition checking by attribute in list with unlang
Jorge Pereira
jpereira at freeradius.org
Fri Mar 29 18:18:06 CET 2019
The syntax is wrong. It should be
if (........) {
update <list> {
&avp := value
}
}
More information about unlang https://freeradius.org/radiusd/man/unlang.html
On Fri, Mar 29, 2019 at 2:06 PM Vladislav Solovei <vladsol2009 at gmail.com> wrote:
>
> I am trying to check the "Group" attribute in "reply" list with unlang:
>
> update reply {
> if (reply:Group == "level1") {
> &ERX-Ingress-Policy-Name = "some_policy"
> }
> }
>
> But, something is wrong. I am getting an error: "Entry is not in
> "attribute = value" format""
> Is it possible to do conditional checks by attribute in a list?
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list