Problem with backslash in User-Name
Marco Scholl
mail at marco-scholl.de
Fri Feb 10 08:28:02 CET 2017
> The shell is looking at the string "test\radius", and converting the \r to CR.
> You need to do:
> radtest -t mschap "test\\radius" radius localhost 1 testing123
Hi
this idea i have, too.
I have also tried
radtest -t mschap "test\\radius" radius localhost 1 testing123
radtest -t mschap 'test\\radius' radius localhost 1 testing123
radtest -t mschap 'test\radius' radius localhost 1 testing123
And i have tried it with a windows pc who send test\radius as username, too.
Every time i got the same result.
(3) Received Access-Request Id 162 from 127.0.0.1:47616 to 127.0.0.1:1812 length 142
(3) User-Name = "test\radius"
(3) NAS-IP-Address = 10.100.254.174
(3) NAS-Port = 1
(3) Message-Authenticator = 0x04cc54ee9ddacfcabef7363ab9594675
(3) Framed-Protocol = PPP
(3) MS-CHAP-Challenge = 0x7cf4f181645b76e7
(3) MS-CHAP-Response = 0x0001000000000000000000000000000000000000000000000000ded8d17072bccb4f4719a58862797da4bbb9791d54c51aaf
(3) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(3) authorize {
(3) [preprocess] = ok
(3) ntdomain: Checking for prefix before "\"
(3) ntdomain: No '\' in User-Name = "test adius", looking up realm NULL
(3) ntdomain: No such realm "NULL"
(3) [ntdomain] = noop
greets marco
More information about the Freeradius-Users
mailing list