Enforce Case sensitive usernames in freeradius.

Solving Case Insensitivity Issues in Freeradius with MySQL

Introduction: When you install Freeradius with MySQL, you may encounter an issue where customers can log in regardless of the case sensitivity of their username. For example, “DFGT” and “DFGt” would both authorize successfully. This can be resolved by making a few changes to the Freeradius configuration files.

Problem: In a fresh installation of Freeradius with MySQL, the authorization check and reply queries are set to be case-insensitive. This means that the usernames are not stored in a case-sensitive manner, which can be a security issue for some applications.

radtest AL6RNs netpap localhost 3 testing123

Which will authenticate similar to

Solution:

To solve this.

Uncomment the code block below in the file

vim /etc/raddb/mods-config/sql/main/mysql/queries.conf

Comment back the following block of code


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish