[issue10284] NNTP should accept bytestrings for username and password

Antoine Pitrou report at bugs.python.org
Sat Nov 13 00:44:25 CET 2010

Antoine Pitrou <pitrou at free.fr> added the comment:

Hello Julien,

> That's one of the reasons why AUTHINFO SASL is better than AUTHINFO
> USER.  It also allows whitespaces (a few news servers do not parse
> well whitespaces in user names or passwords after AUTHINFO USER/PASS
> -- imagine " test" with a leading space).  Solved with SASL.

If you want to contribute SASL auth for NNTP, it might make sense to
have a dedicated module to provide SASL mechanisms (and then let imaplib
reuse that module). Of course, not all mechanisms need to be provided at
the start.

(FWIW, I had written a patch providing generic SASL support for Twisted
years ago: http://twistedmatrix.com/trac/ticket/2015 )


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list