Mac Auth Rewrite SSID Issue

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Mar 14 20:28:34 CET 2012


On 14 Mar 2012, at 20:18, John Corps wrote:

> Hello All,
> 
> I have had this setup (http://wiki.freeradius.org/Mac-Auth) for a long
> time and it has been working well. Now I am experiencing an issue with
> the rewrite of the called station id to extract the SSID from the
> wireless. Anyone know how I can update the rewrite called station id
> function to allow the SSID to have spaces? For example,
> "called-station-id = 00-11-22-33-44-55:SSID WITH SPACE" is just
> extracting the SSID as "SSID" I need it to show as "SSID WITH SPACE"
> but aswell be able to process others like "SSID-NEW-SSID01"

Just add a space in the char class for matching after the 6th octet.

        if(Called-Station-Id =~ /^([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([-a-z0-9_. ]*)?/i){

Updated the wiki... Really I guess it should be 

        if(Called-Station-Id =~ /^([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:]?(.*)?/i){

But you're the first one who's complained ;)

Arran Cudbard-Bell
a.cudbardb at freeradius.org

Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !



More information about the Freeradius-Users mailing list