Re: Mimic lower_user in FR2

2009-09-25 Thread Ivan Kalik
> Or maybe there's a better way which I don't know about to get the same > result... Perl. $RAD_REQUEST{'User-Name'} = lc($RAD_REQUEST{'User-Name'}); Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Mimic lower_user in FR2

2009-09-25 Thread Thor Spruyt
>- Oorspronkelijk bericht - >Van : Alexander Clouter [mailto:a...@digriz.org.uk] >Verzonden : donderdag , september 24, 2009 05:24 PM >Aan : freeradius-users@lists.freeradius.org >Onderwerp : Re: Mimic lower_user in FR2 > >Thor Spruyt wrote: >> >> Since

Re: Mimic lower_user in FR2

2009-09-24 Thread Alexander Clouter
Thor Spruyt wrote: > > Since lower_user doesn't exist anymore in FR2, I was thinking of doing > the following in FR2 to mimic the behaviour, which seems to be working > correctly: > > In "hints" file: > > DEFAULT User-Name !~ /^$/ >User-Name := `%{exec:/opt/tolower %{User-Name}}`, >

Re: Mimic lower_user in FR2

2009-09-24 Thread Alan DeKok
Thor Spruyt wrote: > Is there any reason why I should not do this or why it's not recommended? > The servers on which I want to do this is not heavily loaded (<1req/s). 1 packet/s? That's fine... Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Mimic lower_user in FR2

2009-09-24 Thread Thor Spruyt
Hi, Since lower_user doesn't exist anymore in FR2, I was thinking of doing the following in FR2 to mimic the behaviour, which seems to be working correctly: In "hints" file: DEFAULT User-Name !~ /^$/ User-Name := `%{exec:/opt/tolower %{User-Name}}`, Fall-Through = Yes DEFAULT S