Multivalued attributes

Herwin Weststrate herwin at
Wed Jul 30 10:21:40 CEST 2014

On 29-07-14 19:44, Arran Cudbard-Bell wrote:
> On 29 Jul 2014, at 12:11, Phil Mayers <p.mayers at IMPERIAL.AC.UK> wrote:
>> On 29/07/2014 15:45, Arran Cudbard-Bell wrote:
>>> Sure... Though We already use [*] for string expansions, Alan suggested using the same
>>> here to refer to multiple instances. Do you think that'd work ok?
>> Not sure I understand. As in:
>> if (Attr[*] =~ /regex/)
> Yes, where each instance of attr would be checked against the regex, and if any matched
> the condition would be true.

What would the semantics be if a negative comparison operator would be
used, like this?

  if (Attr[*] !~ /regex/)

My intuition would say this would only be true if none of the attributes
matches, instead of if at least one of the attributes matches.

And I'm not sure what the expected result should be in the following

  if (Attr[*] > 10)

Herwin Weststrate

More information about the Freeradius-Users mailing list