Mac Auth Rewrite SSID Issue

John Corps envoys at gmail.com
Wed Mar 14 20:40:18 CET 2012


Excellent. Thanks Arran, works like a treat, I knew I was overlooking
it. I need to brush up on regex :)

On Wed, Mar 14, 2012 at 3:28 PM, Arran Cudbard-Bell
<a.cudbardb at freeradius.org> wrote:
>
> 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/ !
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list