[issue15014] smtplib: add support for arbitrary auth methods

Barry A. Warsaw report at bugs.python.org
Tue Jun 23 00:05:55 CEST 2015


Barry A. Warsaw added the comment:

On Jun 22, 2015, at 10:00 PM, R. David Murray wrote:

>We change the authobj signature to challenge=None, then the first thing we do
>in auth is 'initial_response = authobj()'.  The return value can be the empty
>string or a real initial value, and we send the auth command with '
>'.join(mechanism, initial_response).strip().  Then we do the challenge part
>only if we get the 334.

Sounds good to me.  I'll see if I can work up a patch.  I have a hack in my
testing code to work around the lack of auth in smtpd.  It's not pretty but it
works.

----------

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


More information about the Python-bugs-list mailing list