Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IMAP with Exchange 2003: NTLM problem

843834Jan 21 2010 — edited Jan 4 2011
Good morning,

I'm working on an IMAP client using Javamail (1.4.3) and JCIFS (1.3.13) and I'm trying to connect to an Exchange 2003 server with NTLM authentication.

I always get the following error message:
"+unknown user name or bad password+"

I changed users, passwords, domain with no luck...

On the Exchange Server, in Event Viewer I can read the following entry:

EventID 1069, Source IMAP4SVC
SSPI authentication attempt from <myIP> has failed with error *0x80090302*.


The debug session with javamail:
DEBUG: trying to connect to host "mailexch01", port 143, isSSL false
* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
A0 OK CAPABILITY completed.
IMAP DEBUG: AUTH: NTLM
DEBUG: protocolConnect login, host=<myhost>, user=<myuser>, password=<non-null>
DEBUG NTLM: type 1 message: Type1Message[suppliedDomain=<mydomain>,suppliedWorkstation=<mypc>,flags=0x00000201]
DEBUG NTLM: type 1 message length: 59
A1 AUTHENTICATE NTLM
+
TlRMTVNTUAABAAAAASIAAAAAAAAAAAAAGwAbACAAAABNM0xYUElUMDMzLklOR0RJUkVDVC5JREkuSVQ=
A1 NO Logon failure: unknown user name or bad password.
Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2011
Added on Jan 21 2010
20 comments
2,115 views