Score:0

FreeRADIUS - Can a username be altered?

kr flag

Is there a way to alter a username before it before FreeRADIUS proxy it?

Example, you have the username "[email protected]" coming to the FreeRADIUS server, the FreeRADIUS server changes the username to "[email protected]" and proxy it to the defined RADIUS server.

Score:0
my flag

Sure. Change the username using the policy language in the authorize section

authorize {
    # This is a policy which ships with the server
    # It breaks the incoming username into
    # - Stripped-User-Name
    # - Stripped-User-Domain
    split_username_nai
    if (&Stripped-User-Domain) {
        update request {
            User-Name := "123user@%{Stripped-User-Domain}"
        }
    }
}
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.