Password == "bla%1" (shooting into my foot)
hello, trying to get freeradius working (again) I figured out a strange behaviour: Authentication with CHAP as my testaccount failed until I tried it with PAP first. After one (or more) successful authentifications with PAP CHAP works. It took some time until I figured out that my password contained a % and the daemon tried some variable substitution. don't do this! How do I escape special chars in the users file and what characters are special? Stefan -- Stefan Nehlsen | ParlaNet Administration | sn@parlanet.de | +49 431 988-1260
Stefan Nehlsen <sn@parlanet.de> wrote:
It took some time until I figured out that my password contained a % and the daemon tried some variable substitution.
don't do this!
How do I escape special chars in the users file and what characters are special?
Use '\'. And for variable substitution, the only real magic character is %. If you put quotes into a password, you'll have to escape it, too. But the rest of the characters that are usually magic shell characters should be OK. Alan DeKok.
participants (2)
-
Alan DeKok -
Stefan Nehlsen