Index is not an integer

Franks Andy (IT Technical Architecture Manager) Andy.Franks at sath.nhs.uk
Mon Dec 14 18:48:44 CET 2015


Thanks Arran,
  Discovered the multiple disconnect thing by trial and error, using radclient seems to work, albeit not preferable calling something "external", but there we are, I can judge by return string whether to close off accounting sessions that never got updated and so on, not too bad..
Wish there was some interface to directly query the switch for account sessions, mac addresses etc on there by port rather than use accounting, but afaics snmp isn't going to help, I don't know what else to do with that one.
Thanks for the help anyway, much appreciated.
Andy

-----Original Message-----
From: Freeradius-Users [mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradius.org] On Behalf Of Arran Cudbard-Bell
Sent: 14 December 2015 17:32
To: FreeRadius users mailing list
Subject: Re: Index is not an integer


> On 14 Dec 2015, at 12:30, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
> 
> 
>> On 14 Dec 2015, at 12:24, Franks Andy (IT Technical Architecture Manager) <Andy.Franks at sath.nhs.uk> wrote:
>> 
>> Hi all,
>> Is there a way of doing this or its equivalent? I'm tracking the index of a variable via expr and then trying to get the output of other variables respectively - I need to do this via a changing index that's housed in a variable, but (and I may be doing this wrong) FR won't start with the following:
> 
> Array index is not an integer, it's an attribute reference, which is not supported.
> 
> You'd need to use 
> %{xlat:%%{control:Tmp-String-3[%{control:Tmp-Integer-0}]%}}
> 
> It's probably not hard to implement array indexes as templates,  but I don't have time to look at it right now.

You also can't send multiple disconnects unless you call out to radclient and do it that way.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org> FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2




More information about the Freeradius-Users mailing list