Hi Brian - I don't understand your question. Why do you think that Cyrus is sending a non-BASE64 challenge? "VXNlcm5hbWU6" looks like perfectly good BASE64 to me. I'd prefer "VXNlciBOYW1lAA==" but what Cyrus sends is fine. -- Mark -- On Fri, 1 Oct 2004, Brian Kirsch wrote:Hello, I am working on Chandler a Python based Personal Information Management System (www.osafoundation.org). We are using Twisted as our IMAP library. I am running in to an issue with AUTH=LOGIN. It works for most IMAP servers as Twisted assumes a base64 encoded challenge. But on some servers such as Cyrus I am getting a non-base64 challenge. I did some searching on the web but I can't seem to find a spec on the AUTH=LOGIN exchange. Can someone clue me in or point me to some references. There error is included below as well. Thanks, Brian Kirsch - Email Framework Engineer Open Source Applications Foundation 543 Howard St. 5th Floor? San Francisco, CA 94105? (415) 946-3056? ------------------- Error Message: 2004-09-24 14:32:24,973 INFO [loginClient] Current View is: <XMLRepositoryView: IMAP_38ed16e6 -0e71-11d9-9978-000a95ca1ecc> 2004-09-24 14:32:24,974 INFO >>> 0001 CAPABILITY 2004-09-24 14:32:25,001 INFO <<< * CAPABILITY IMAP4 IMAP4REV1 ACL NAMESPACE UIDPLUS IDLE LITERAL+ QUOTA ID MULTIAPPEND LISTEXT CHILDREN BINARY LOGIN-REFERRALS AUTH=LOGIN AUTH=PLAIN 2004-09-24 14:32:25,074 INFO <<< 0001 OK completed 2004-09-24 14:32:25,082 INFO >>> 0002 AUTHENTICATE LOGIN 2004-09-24 14:32:25,147 INFO <<< + VXNlcm5hbWU6 2004/09/24 14:32 PDT [ChandlerIMAP4Client,client] Traceback (most recent call last): File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/protocols/basic.py", line 225, in dataReceived File "/OSAF/Chandler/chandler/parcels/osaf/mail/imap.py", line 60, in lineReceived imap4.IMAP4Client.lineReceived(self, line) File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 2045, in lineReceived File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 2062, in _regularDispatch --- <exception caught here> --- File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 2091, in dispatchCommand File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 2118, in response_UNAUTH File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 2130, in _defaultHandler File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 367, in <lambda> File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/site-packages/twisted/mail/imap4.py", line 2320, in __cbContinueAuth File "/Users/builder/heikki/external/release/Library/Frameworks/ Python.framework/Versions/ 2.3/lib/python2.3/base64.py", line 37, in encodestring for i in range(0, len(s), MAXBINSIZE):-- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
Thanks Mark, You are right the server was sending a correct base64 string. It turns out the Twisted code was expecting the decoded value to be 'User Name\0' and the server returned 'Username:' as the decoded value. The next question to the list is: What decoded challenges for username and password in AUTH=LOGIN can I expect in the real world? Brian Kirsch - Email Framework Engineer Open Source Applications Foundation 543 Howard St. 5th Floor San Francisco, CA 94105 (415) 946-3056 On Oct 1, 2004, at 3:35 PM, Mark Crispin wrote:
- Re: LIST % wildcard as the last chara... Philip Guenther
- Re: LIST % wildcard as the last character Alexey Melnikov
- Re: LIST % wildcard as the last chara... Ken Murchison
- Re: LIST % wildcard as the last ... Alexey Melnikov
- Re: LIST % wildcard as the l... Ken Murchison
- Re: LIST % wildcard as the last ... Philip Guenther
- Re: LIST % wildcard as the l... Ken Murchison
- Re: LIST % wildcard as the l... Alexey Melnikov
- Question regarding AUTH=LOGIN Brian Kirsch
- Re: Question regarding AUTH=... Mark Crispin
- Re: Question regarding AUTH=... Brian Kirsch
- Re: Question regarding AUTH=... Mark Crispin
- Re: Question regarding AUTH=... Grant Baillie
- RE: LIST % wildcard as the last character David Truckenmiller
