FreeRadius server 3.0.21 user name case insensitivity
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. 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?
You can alter the db query to covert to lowercase
On May 17, 2022, at 12:11 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.
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? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
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.
participants (3)
-
Alan DeKok -
Jonathan Davis -
Luveh Keraph