Unlang Configuration Problem on Missing Attributes
mcn at freeradius.org
Sat Feb 13 10:45:08 CET 2021
On 13/02/2021 05:44, StreitLeak wrote:
> so the real query is "insert into radacct ( attr1.attr2.attr3,attr4)
> values (' Mon Feb 8 15:15:11 2021\n ', '65535','1','' )
> As you can see . the Attr4 is missing in Request Packet. And it cause
> the query failed. So I need to set some rules to avoid it. But I can't
> understand the foreach how to check each VSA attributes. Or any easily way
> to avoid the missing attributes.
You can use conditional expansions
There are plenty of examples of this in the default config, especially
in the SQL queries.
More information about the Freeradius-Users