Victor Duchovni wrote:
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>


Here's a handy tool for generating the proper auth string.
http://jetmore.org/john/code/gen-auth

--
Noel Jones

Reply via email to