> 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
>- 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
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}}`,
>
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
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
5 matches
Mail list logo