Foreach-Variable-X and =~

Arran Cudbard-Bell a.cudbardb at freeradius.org
Fri May 16 16:52:02 CEST 2014


On 16 May 2014, at 14:58, Phil Mayers <p.mayers at IMPERIAL.AC.UK> wrote:

> Does this work for anyone else? I'm running 3.0.x HEAD, and finding that this:
> 
>   if (Cisco-AVPair) {
>       foreach &Cisco-AVPair {
>           if (Foreach-Variable-0 =~ /^audit-session-id=(.+)$/) {

Foreach-Variable-0 isn't an actual attribute.

Needs to be access as %{Foreach-Variable-0} still.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140516/d2f22939/attachment.pgp>


More information about the Freeradius-Users mailing list