[issue7779] smtplib SASL PLAIN authentication error

Sérgio Surkamp report at bugs.python.org
Mon Jan 25 22:05:06 CET 2010


Sérgio Surkamp <sergio at gruposinternet.com.br> added the comment:

The SASL protocol says that the encoded base64 should be formed from:

null + login + null + password

The smtplib is not doing it, instead its "converting" the \012 (\0 + 2 first chars from password) in the char "\n", and it's right in the python way to see the things, it's not the bug reported here. The bug is a patch to change the null character representation from \0 to \x00 (using the hexadecimal representation) in the encode_base64 call to prevent the "conversion" and generate the right base64 encoded string.

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7779>
_______________________________________


More information about the Python-bugs-list mailing list