multiattribute testing in git 1411859

Franks Andy (RLZ) IT Systems Engineer Andy.Franks at
Wed Aug 6 18:37:06 CEST 2014

Ah, ok so it's just functionality built into the cache module then..?
I'll consider foreach then, and do my tests another way perhaps. Means a
decent portion of unlang being rewritten.
Did you manage to reproduce the foreach and if statement issue I
sketched out on skype at all? If so, I can be sure that foreach will be

-----Original Message-----
From: at
[ at lists.freeradiu] On Behalf Of Arran Cudbard-Bell
Sent: 06 August 2014 17:00
To: FreeRadius users mailing list
Subject: Re: multiattribute testing in git 1411859

On 6 Aug 2014, at 11:22, Franks Andy (RLZ) IT Systems Engineer
<Andy.Franks at> wrote:

> Thanks Arran,
>  Can you confirm whether we should be able to do something like :
> If (&control:attribute[*] == "test") { With the control:attribute 
> being either just a multivalue attribute, or one from the cache?

Not yet, i've been thinking about how to do that in a clean way...
and I need it to for a project, so it's definitely high on my stack of
stuff to write.

For now, the above statement would hopefully produce an error on

For now just use foreach.


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

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

More information about the Freeradius-Users mailing list