Problem with backslash in User-Name

Marco Scholl mail at marco-scholl.de
Thu Feb 9 23:08:28 CET 2017


Hi Guys,

i have a problem with 3.0.12 and User-Name.

I send a request with domain name included in User-Name:

radtest -t mschap "test\radius" radius localhost 1 testing123

On freeradius i see User-Name = "test\radius" in line 2.

(0) Received Access-Request Id 61 from 127.0.0.1:34351 to 127.0.0.1:1812 length 142
(0)   User-Name = "test\radius"
(0)   NAS-IP-Address = 10.100.254.174
(0)   NAS-Port = 1
(0)   Message-Authenticator = 0xdd90f7f9365aca2896632b1a531bb760
(0)   Framed-Protocol = PPP
(0)   MS-CHAP-Challenge = 0xe7d0a3bb2ba11619
(0)   MS-CHAP-Response = 0x0001000000000000000000000000000000000000000000000000f16973c17df493cec36e7f24c5ed837697dbb69248fdb117
(0) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(0)   authorize {
(0)     [preprocess] = ok
(0) ntdomain: Checking for prefix before "\"
(0) ntdomain: No '\' in User-Name = "test adius", looking up realm NULL
(0) ntdomain: No such realm "NULL"
...

But for ntdomain the User-Name is broken. The blackslash escape the "r" so i seed  "test adius" instead "test\radius".

I also tried to use split_username_nai but here the same problem.

My problem is, that windows send every time a domain.

Anybody have an idea to fix this bug?

Greets Marco


More information about the Freeradius-Users mailing list