MBOX-Line: From jeff.mckay at comaxis.com  Sat Nov 17 15:23:07 2012
To: imap-protocol@u.washington.edu
From: Jeff McKay <jeff.mckay@comaxis.com>
Date: Fri Jun  8 12:34:49 2018
Subject: [Imap-protocol] Cannot authenticate plain with Cyrus server
Message-ID: <50A81C5B.3010109@comaxis.com>

I have client software trying to do AUTHENTICATE PLAIN against a Cyrus 
imap server version
2.2.12.  I have a SSL connection. I am getting authentication failure 
even though I'm pretty
sure I am doing this correctly. The original auth response I generate is 
this:

64 6F 67 67 79 00 63 6F 6D 70 75 67 65 6E 00 63 doggy.compugen.c
6F 6D 70 75 67 65 6E 00 00 00 00 00 00 00 00 00 ompugen.........

where "doggy" is the user id and "compugen" is both the administrator
user and password.  I base64 encode this string to:

ZG9nZ3kAY29tcHVnZW4AY29tcHVnZW4=

and send that in response to the server's '+' prompt, but get back
"NO authentication failure".  I can do a normal login using
compugen/compugen and it works, and that gives me access to all user
folders.  I am also certain that "doggy" is a valid user id, because
I have logged in with that as well.

I have used this exact same software with many other servers to do
authenticate plain with no problem.  Since I can do a normal login with
compugen, that suggests a work around I can use, but I would prefer to
know what is wrong with auth plain, or know for certain that there is a
problem on the server that is not my fault.


