Condition checking by attribute in list with unlang

Vladislav Solovei vladsol2009 at gmail.com
Fri Mar 29 18:06:20 CET 2019


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?


More information about the Freeradius-Users mailing list