This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shubes
Recipients shubes
Date 2009-08-11.16:17:15
SpamBayes Score 2.3212917e-05
Marked as misclassified No
Message-id <1250007436.58.0.446313092376.issue6683@psf.upfronthosting.co.za>
In-reply-to
Content
The login method in smtplib.py tries only one authentication mechanism.
There are legitimate situations where cram-md5 might fail, yet plain or
login would succeed.

RFC2554 states:
  If an AUTH command fails, the client may try another authentication
  mechanism by issuing another AUTH command.

The login method should attempt all mechanisms in preferred_auths before
returning a failure. This will make the code more robust, returning a
failure only when absolutely no authentication is possible.
History
Date User Action Args
2009-08-11 16:17:17shubessetrecipients: + shubes
2009-08-11 16:17:16shubessetmessageid: <1250007436.58.0.446313092376.issue6683@psf.upfronthosting.co.za>
2009-08-11 16:17:15shubeslinkissue6683 messages
2009-08-11 16:17:15shubescreate