Match newline in Cisco-AVPair[*]

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Apr 15 18:25:14 CEST 2015


>        elsif ("%{Cisco-AVPair[*]}" =~ /client-mac-address=(.*)/) {
>               update control {
>                       My-Client-Mac-Address = "%{1}"
>               }


"%{Cisco-AVPair[*]}" is not the same as &Cisco-AVPair[*].

The first example means concatenate all values of this attribute together using newlines.

The second example means operate on all instances of this attribute.

-Arran

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: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20150415/49f9d622/attachment.sig>


More information about the Freeradius-Users mailing list