> On Thu, Sep 11, 2008 at 12:00:33PM -0300, Diego Ledesma wrote: > > > testsaslauthd -u pruebarelay -p 1234 -f > > /var/spool/postfix/var/run/saslauthd/mux > > 0: OK "Success." > > > > AUTH PLAIN AHBydWViYXJlbGF5CjM0 > > 535 5.7.0 Error: authentication failed: bad protocol > > Wrong base64 string: > > echo AHBydWViYXJlbGF5CjM0 | openssl base64 -d | od -c > 0000000 \0 p r u e b a r e l a y \n 3 4 > 0000017 > > It should encode: > > \0<username>\0<rightpassword> > > not, > > \0<username>\n<wrongpassword> # perl -MMIME::Base64 -e 'print encode_base64("\0pruebarelay\0001234")' AHBydWViYXJlbGF5ADEyMzQ=
Warning: If either of the user or password strings starts with an octal digit, YOU MUST USE THREE ZEROS instead of one after the leading backslash. If you do not, the octal digit that starts your string will be incorrectly interpreted as part of the code for the first character.