Lower case to Upper case in Calling-Station-Id at policy.conf

Garber, Neal Neal.Garber at energyeast.com
Fri Sep 18 20:11:32 CEST 2009


Did you create an alias in modules/perl that uses this script for authorize?  Did you add the alias name to the authorize section of your default server?  What return value are you using in the script (RLM_UPDATED)?

-----Original Message-----
From: freeradius-users-bounces+neal.garber=energyeast.com at lists.freeradius.org [mailto:freeradius-users-bounces+neal.garber=energyeast.com at lists.freeradius.org] On Behalf Of Hilton Guaraldi
Sent: Friday, September 18, 2009 1:13 PM
To: FreeRadius users mailing list
Subject: Re: Lower case to Upper case in Calling-Station-Id at policy.conf

Ok...

I tried $RAD_REQUEST{'Calling-Station-Id'} =
uc($RAD_REQUEST{'Calling-Station-Id'}).
I guess in the sub authorize of example.pl ..............The only file
I saw sub authorize in...
If I am wrong, please help me what is the correct file!

Running radiusd -X nothing happens in MAC address. If it is
00-18-e7-41-ad-c2, it remains the same, not 00-18-E7-41-AD-C2, :-(

Must I "include" example.pl to radius in order to do
$RAD_REQUEST{'Calling-Station-Id'} =
uc($RAD_REQUEST{'Calling-Station-Id'}) work?

Guaraldi


2009/9/18 Alexander Clouter <alex at digriz.org.uk>:
> Hi,
>
> Hilton Guaraldi <guaraldi at gmail.com> wrote:
>>
>> How can I use uc function below in order to change lower case to upper case?
>>
>> Ex. 00-18-e7-41-ad-c2    --->  00-18-E7-41-AD-C2
>>
>> In the policy.conf:
>>
> When I last nosied through the source code there is no way.  I normally
> make sure all the polies are case insensitive *in* FreeRADIUS and when
> things get spat out to my SQL server I slip 'lower(...)' around the MAC
> addresses going in that direction.
>
> The only other way is to have a Perl script doing the work for you, but
> as you can use case insensitive regex to replace string matching, I
> would say it is not worth it.
>
> Cheers
>
> --
> Alexander Clouter
> .sigmonster says: Idleness is the holiday of fools.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list