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

Ivan Kalik tnt at kalik.net
Fri Sep 18 10:31:00 CEST 2009

> 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

It's a perl function. So you put in sub authorize:

$RAD_REQUEST{'Calling-Station-Id'} = uc($RAD_REQUEST{'Calling-Station-Id'})

Ivan Kalik
Kalik Informatika ISP

More information about the Freeradius-Users mailing list