Version 3.0.3 has been released

peter.geiser at id.unibe.ch peter.geiser at id.unibe.ch
Tue May 13 11:28:21 CEST 2014


Hi,
does the case insensitive flag in unlang regex no longer work in FR 3.0.3?

This Policy match in FR 3.0.2 but not in FR 3.0.3:

set_eduroam_vlan {
   foreach Cisco-Avpair {
      if("%{Foreach-Variable-0}" =~ /ssid=eduroam/i) {
         update {
            reply:Tunnel-Type := ‚VLAN'
            reply:Tunnel-Medium-Type := 'IEEE-802‘
         }

	… (irrelevant part deleted)

      }
   }
}


Now debug output:

(11)   set_eduroam_vlan set_eduroam_vlan {
(11)  foreach Cisco-Avpair
(11)   if ("%{Foreach-Variable-0}" =~ /ssid=eduroam/i)
(11) EXPAND %{Foreach-Variable-0}
(11)    --> ssid=EDUROAM
(11)    if ("%{Foreach-Variable-0}" =~ /ssid=eduroam/i)  -> FALSE
(11)   } # foreach Cisco-Avpair = noop
(11)   } # set_eduroam_vlan set_eduroam_vlan = noop

Why does this no longer match with FR 3.0.3?

- Peter



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5072 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140513/a8cb7a97/attachment.bin>


More information about the Freeradius-Users mailing list