Modify User-Name to upper Case (rewrite/unlang)

Eric Martell workoutexcite at yahoo.com
Fri Mar 20 18:27:38 CET 2009


Hi,
  I am searching through the forum and did not got a right suggestion. 

I am doing LDAP authentication and getting macaddress as User-Name in the following format.

User-Name = "001e.5283.34aa"

I want to convert that to  "001E528334AA" => convert to uppercase.and remove the dots.

Is there any function I can use such as, 
 ldap {

   User-Name := User-Name.toUpperCase().replace('.','');

}

Please guide me to the documentation.

Thanks and Regards.
Eric.







      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090320/57940918/attachment.html>


More information about the Freeradius-Users mailing list