[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Sérgio Surkamp
Sérgio Surkamp added the comment: Got your point. Sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It doesn't matter whether \0 or \x00 is used. They mean the same thing. Maybe this is the example I should have given: >>> list('\0%s' % ('12',)) ['\x00', '1', '2'] >>> list('\x00%s' % ('12',)) ['\x00', '1', '2'] >>> -- _

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Sérgio Surkamp
Sérgio Surkamp 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 t

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: There's no bug here. You've misunderstood how the literal \0 syntax works. Perhaps this will clarify things: >>> list('\0123') ['\n', '3'] >>> list('\x00123') ['\x00', '1', '2', '3'] >>> -- nosy: +exarkun

[issue7779] smtplib SASL PLAIN authentication error

2010-01-25 Thread Sérgio Surkamp
New submission from Sérgio Surkamp : There is bug in PLAIN mechanism's of smtplib. The generated base64 string fail when the password start with numbers. As long as I could find, the error occur in method encode_plain. Using the null character (\0) in hexadecimal representation (\x00) seems to