[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: FreeRadius server 3.0.21 user name case insensitivity
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2022-05-18 11:33:02
Message-ID: 54A57724-DA49-424F-914E-BD08EDD1A964 () deployingradius ! com
[Download RAW message or body]

On May 17, 2022, at 12:10 PM, Luveh Keraph <1.41421@gmail.com> wrote:
> 
> Out of the box, when fed a user name and password for authentication, the
> FreeRadius server 3.0.21 processes the user name in a case-sensitive way. I
> would like to configure my server so that it processes user names
> case-insensitively. So far what I have done is to add the following line to
> my /etc/raddb/mods-enabled/files file, within the file { } block:
> 
>      key = "%{%{Stripped-User-Name}:-%{tolower:%{User-Name}}}"
> 
> This converts the user names received to all-lowercase. With this,
> things work as expected as long as I make sure to define my RADIUS users in
> my server's users file with all lowercase characters.

  Yes.

> Is it, however, possible to configure the FreeRadius server so that it
> compares input user names against those in the server's default users
> database in a case-insensitive way, so that names in this database - just a
> plaintext file, really - can be entered in mixed case?

  No.

 Since you control how the "users" file is created, why not just create it with lowercase names?

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic