Re: [Imap-protocol] authenticate LOGIN question

Gene Smith <[email protected]> Wed, 1 Nov 2017 00:35:04 -0400
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
On 10/31/17 10:04 PM, Tim Showalter wrote:
> I haven't worked on the Y! IMAP server in several years at this point, 
> and I can't speak for their current implementation. I know that they 
> have rewritten a lot of it since I left.
> 
> But it is quite possible that it's simply a bug. I don't know which 
> clients would still support AUTH=LOGIN. I would not advise any client to 
> use AUTH=LOGIN, particularly not if PLAIN is available. LOGIN is not a 
> good mechanism, and is strictly worse than both basic LOGIN and PLAIN. 
> It's just more round trips for what I recall to be a silly protocol.
> 
> Tim

Ok, thanks for the input. It does seem like a bug in that auth LOGIN 
doesn't work for yahoo at all. Also, in thunderbird, it only uses auth 
LOGIN if PLAIN fails for some reason. Then it sends the uid/pwd using 
auth LOGIN (that always fails for yahoo) finally it tries imap login.

I also notice an anomaly with yahoo's authenticate PLAIN that maybe you 
can explain. If you give it a bad auth string after the + response it 
tells you the credentials are bad with another + prompt. If I respond 
with a good auth string it still fails. Apparently the 2nd + prompt is 
not really requesting a corrected auth string. If so, what is the 2nd 
prompt for? I have seen no other imap servers doing this double 
prompting when a bad auth string is sent.

Here's what happens when tb talks to yahoo (yh) doing auth PLAIN when a 
bad auth string is provided followed by a good one:

tb:  1 authenticate PLAIN
yh:  +
tb:  <BAD encoded auth string> <--- changed the 5th char to 'z', was 'd'
yh:  + <encode string saying auth string is bad>
tb:  <GOOD encoded auth string> <--- I returned the 5th char back to 'd'
yh:  1 NO [AUTHENTICATIONFAILED] AUTHENTICATE Invalid credentials

-gene
_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol