Good morning,<br><br>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.<br><br>I always get the following error message:<br>
"unknown user name or bad password"<br><br>I changed users, passwords, domain with no luck...<br><br>On the Exchange Server, in Event Viewer I can read the following entry:<br><br>EventID 1069, Source IMAP4SVC<br>
SSPI authentication attempt from <myIP> has failed with error 0x80090302. <br><br>In javamail forum they suggested me to post here as Javamail uses JCIFS for NTLM handshake...<br><br>The debug session with javamail:<br>
<br>DEBUG: trying to connect to host "mailexch01", port 143, isSSL false<br>* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 ready.<br>A0 CAPABILITY<br>* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM<br>
A0 OK CAPABILITY completed.<br>IMAP DEBUG: AUTH: NTLM<br>DEBUG: protocolConnect login, host=<myhost>, user=<myuser>, password=<non-null><br>DEBUG NTLM: type 1 message: Type1Message[suppliedDomain=<mydomain>,suppliedWorkstation=<mypc>,flags=0x00000201]<br>
DEBUG NTLM: type 1 message length: 59<br>A1 AUTHENTICATE NTLM<br>+<br>TlRMTVNTUAABAAAAASIAAAAAAAAAAAAAGwAbACAAAABNM0xYUElUMDMzLklOR0RJUkVDVC5JREkuSVQ=<br>A1 NO Logon failure: unknown user name or bad password.<br><br>Thanks!<br>