Hey guys,

 

So I finally started configuring this MAC auth bypass thing... I am
editing the raddb/policy.conf to include the
"rewrite_calling_station_id" function/module however when I am trying to
run the radiusd -X I got this error:

 

"/etc/raddb/policy.conf[72]: Parse error in condition at:
request:Calling-Station-Id =~
/00-A0-08-([0-9A-F]{2})-([[0-9A-F]{2})-([[0-9A-F]{2})/i)" error

 

Here is what I added in the policy.conf. I appended to the back of the
file. I never changed anything else in this file.

 

        rewrite_calling_station_id {

                if(request:Calling-Station-Id =~
/00-A0-08-([0-9A-F]{2})-([[0-9A-F]{2})-([[0-9A-F]{2})/i)

                {

                        update request {

                                Calling-Station-Id :=
"%{1}-%{2}-%{3}-%{4}-%{5}-%{6}"

                        }

                }

                else

                {

                        noop

                }

        }

 

My Calling-Station-Id is MAC addresses which are made of numbers and
capital letters and - between octets. However my User-Name is all lower
case letters and numbers and there is no - or :. I want to rewrite the
calling station id to be the same as the User-Name. Am I doing it right?
How can I convert it to lower cases or do I need to do it at all??

 

PS the MAC addresses will all start with 00-A0-08. 

 

Thank you and merry Christmas!!

 

Guest-tek, Difan Zhao

[email protected]

www.guest-tek.com

Office: 403-509-1010 ext 3048

Cell: 403-689-7514

 

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to