multiattribute testing in git 1411859

Franks Andy (RLZ) IT Systems Engineer Andy.Franks at sath.nhs.uk
Mon Aug 11 09:51:38 CEST 2014


Hi Arran,
  Is the test cases directory thing documented somewhere? 
I just echo this lot to a file under policy.conf and reference it from
default, but I guess from your reply that's not what you're after..?

my-regexp=(.*)

my-policy {

update control {
  Tmp-String-0 := "ssid=ABCDEF"
  Tmp-String-0 += "ssid=GHIJKL"
}

  if (User-Name) {
    foreach control:Tmp-String-0 {
      if ("%{Foreach-Variable-0}" =~ /${policy.my-regexp}/) {
        update control {
          SSID := "%{1}"
        }
      }
    }
  }

  foreach control:Tmp-String-0 {
    if ("%{Foreach-Variable-0}" =~ /${policy.my-regexp}/) {
      update control {
        SSID := "%{1}"
      }
    }
  }



-----Original Message-----
From:
freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradius.org
[mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradiu
s.org] On Behalf Of Arran Cudbard-Bell
Sent: 08 August 2014 22:10
To: FreeRadius users mailing list
Subject: Re: multiattribute testing in git 1411859


On 6 Aug 2014, at 17:02, Franks Andy (RLZ) IT Systems Engineer
<Andy.Franks at sath.nhs.uk> wrote:

> Thanks Arran for taking the time to reply in-depth.
> I did send a test case over on skype?

Needs to be in a format I can just drop in the test cases dir and see
fail.

-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