Re: Forcing lowercase User-Name with rlm_perl

2008-06-12 Thread Alan DeKok
oz wrote: > A small problem I just had when I recompiled my freeradius-2.0.3 with Answer: 2.0.5. > I decided to ignore it, because the symbolic link inner-tunnel > alread existed from my first compilation an that seems to cause the > error (is this fixed in 2.0.5 eventually?). Yes. Alan D

Re: Forcing lowercase User-Name with rlm_perl

2008-06-12 Thread oz
Hi Chris, your perl-module for lower_user works perfectly! It was important, to use it in the right order, which means in my case before "files" ... authorize { preprocess perl files } preacct { preprocess perl files } Doing this, User-Name is lower-cased i

Re: Forcing lowercase User-Name with rlm_perl

2008-06-11 Thread oz
Wow Chris, looks great and is very helpful! I will test it tomorrow and give a short feedback whether it works. Thanks a lot, oz On Wed, 11 Jun 2008 14:28:13 -0700 Chris <[EMAIL PROTECTED]> wrote: > I'm doing this: > > perl_tolower.pm: > use strict; > use vars qw(%RAD_REQUEST %RAD_REPLY %RAD_

Re: Forcing lowercase User-Name with rlm_perl

2008-06-11 Thread Chris
I'm doing this: perl_tolower.pm: use strict; use vars qw(%RAD_REQUEST %RAD_REPLY %RAD_CHECK); # # This the remapping of return values # use constantRLM_MODULE_REJECT=>0;# /* immediately reject the request */ use constantRLM_MODULE_FAIL=> 1;# /* module failed,

Re: Forcing lowercase User-Name with rlm_perl

2008-06-11 Thread oz
On Sat, 17 May 2008 18:09:09 -0700 Chris <[EMAIL PROTECTED]> wrote: > Thanks. I'll look at lc. > I was actually more concerned about the interfacing with freeradius than the > perl itself. Hello, another user here, who needs "lower_user = before" to be able to switch to freeradius-2.0.x. Our d

Re: Forcing lowercase User-Name with rlm_perl

2008-05-17 Thread Chris
On May 17, 2008, at 6:31 AM, Krzysztof Olędzki wrote: On 2008-05-17 02:09, Chris wrote: I basically want User-Name to be forced to lowercase for the duration of the request. I have done the following: modules { perl { module = my_perl_module.pm } } authorize {

Re: Forcing lowercase User-Name with rlm_perl

2008-05-17 Thread Krzysztof Olędzki
On 2008-05-17 02:09, Chris wrote: I basically want User-Name to be forced to lowercase for the duration of the request. I have done the following: modules { perl { module = my_perl_module.pm } } authorize { preprocess perl ... } Pertin

Forcing lowercase User-Name with rlm_perl

2008-05-16 Thread Chris
I basically want User-Name to be forced to lowercase for the duration of the request. I have done the following: modules { perl { module = my_perl_module.pm } } authorize { preprocess perl ... } Pertinent contents of my_perl_module.pm: