| 1 |
update { |
| 2 |
control:Tmp-String-0 := "ssid=ABCDEF" |
| 3 |
control:Tmp-String-0 += "ssid=GHIJKL" |
| 4 |
reply:Filter-Id := "filter" |
| 5 |
} |
| 6 |
|
| 7 |
if (User-Name) { |
| 8 |
foreach &control:Tmp-String-0 { |
| 9 |
if ("%{Foreach-Variable-0}" =~ /(.*)/) { |
| 10 |
update control { |
| 11 |
Tmp-String-1 := "%{1}" |
| 12 |
} |
| 13 |
} |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
if (&control:Tmp-String-1 != 'ssid=GHIJKL') { |
| 18 |
update reply { |
| 19 |
Filter-Id += 'fail 0' |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
update control { |
| 24 |
Tmp-String-1 !* ANY |
| 25 |
} |
| 26 |
|
| 27 |
foreach &control:Tmp-String-0 { |
| 28 |
if ("%{Foreach-Variable-0}" =~ /(.*)/) { |
| 29 |
update control { |
| 30 |
Tmp-String-1 := "%{1}" |
| 31 |
} |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
if (&control:Tmp-String-1 != 'ssid=GHIJKL') { |
| 36 |
update reply { |
| 37 |
Filter-Id += 'fail 1' |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
update control { |
| 42 |
Tmp-String-1 !* ANY |
| 43 |
} |