Forcing lowercase User-Name with rlm_perl

Chris cjl at
Sat May 17 02:09:13 CEST 2008

I basically want User-Name to be forced to lowercase for the duration  
of the request.

I have done the following:

modules {
	perl {
		module =

authorize {

Pertinent contents of

sub authorize {
         $RAD_REQUEST{'User-Name'} =~ tr/A-Z/a-z/;
         return RLM_MODULE_OK;

This seems to do what I want.  Is it the correct way to accomplish  
this task?


More information about the Freeradius-Users mailing list