29 Sep
2020
29 Sep
'20
8:17 a.m.
On Sep 29, 2020, at 8:08 AM, Mark Grayson (mgrayson) via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
Is there a way to be able to POST multiple Class attributes using Rest?
I am currently testing returning multiple class attributes and can see they are being sent in the accounting-request trace:
(10) Framed-IP-Address = 10.192.230.1
(10) Class = 0x31323334353637383957424149443d64756d6d792e6d656d6265723a5553
(10) Class = 0x37334a773b51793453716c44264e5548405929
Is there a way I can pass both received class attributes in a rest POST?
It looks like the Rest %{Class} simply picks the first one.
Yes. $ man unlang %{Class[0]} picks the first one %{Class[1]} picked the second one etc. Alan DeKok.