sending multiple Class attributes in Rest POST

Alan DeKok aland at deployingradius.com
Tue Sep 29 14:17:08 CEST 2020


On Sep 29, 2020, at 8:08 AM, Mark Grayson (mgrayson) via Freeradius-Users <freeradius-users at 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.




More information about the Freeradius-Users mailing list