Score:1

Freeradius case sentivitity of letters

me flag

I have VirtualMachine with freeradius server (3.0). I am using the authorization file which contains my PPPoE users. The problem seems to be the username: the login is in UPPER CASE which collides with the incoming username.

I can't manually change this because my config file is generated by LMS (Lan Management System - I won`t change anything in code). Is there any method to turn off case-sensitivity in freeradius?

This is my config:


EXAMPLEUSER Cleartext-Password := "ExamplePassword01@"
        Framed-Protocol = PPP,
        Framed-IP-Address = 192.168.0.33,
        Framed-IP-Netmask = 255.255.255.0,
        Service-Type = Framed-User,
        Mikrotik-Rate-Limit = "30000k/30000k 30000k/30000k 30000k/30000k 1/1 1 30000k/30000k"

I tried to find information about case-sensitivity, but I couldn't find anything.

Score:1
es flag

The FreeRadius expr module does provide toupper and tolower. You could convert the received username to "UPPER CASE" in the authorize section or in a policy.

Slightly modified example from the first link

authorize {
    update request {
        Stripped-User-Name := "%{toupper:%{User-Name}}"
    }

links

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.