[jcifs] Javamail IMAP NTLM handshake

Clapham, Paul pclapham at core-mark.com
Tue Jan 19 12:22:38 MST 2010


Do you mean this JavaMail forum:
http://forums.sun.com/forum.jspa?forumID=43 ?

Because I don't see any such post there, and that (in my opinion) would
be the best forum to ask this question.

PC2

-----Original Message-----
From: jcifs-bounces at lists.samba.org
[mailto:jcifs-bounces at lists.samba.org] On Behalf Of Michael B Allen
Sent: January 19, 2010 11:06
To: Luca Dentella
Cc: jcifs at lists.samba.org
Subject: ***SPAM*** Re: [jcifs] Javamail IMAP NTLM handshake

Hi Luca,

I have never heard of Javamail so you'll have to go deeper. Perhaps you
can find the code in Javamail that uses JCIFS and post it here?

Mike

On Tue, Jan 19, 2010 at 7:00 AM, Luca Dentella <luca at dentella.it> wrote:
> 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.
>
> In javamail forum they suggested me to post here as Javamail uses 
> JCIFS for NTLM handshake...
>
> 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>,flag
> s=0x00000201]
> DEBUG NTLM: type 1 message length: 59
> A1 AUTHENTICATE NTLM
> +
> TlRMTVNTUAABAAAAASIAAAAAAAAAAAAAGwAbACAAAABNM0xYUElUMDMzLklOR0RJUkVDVC
> 5JREkuSVQ=
> A1 NO Logon failure: unknown user name or bad password.
>
> Thanks!
>



--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list