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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

javamail 1.4.4 and NTLM

D002934Aug 12 2011 — edited Aug 12 2011
With version 1.3.3 I could connect to a another users mailbox by using mydomain\myuserid\othermailboxname as the connecting user.
With version 1.4.4 I can't anymore but I'm connected to my own maibox instead.

Below are the complete traces:
h1. 1.3.3
DEBUG: setDebug: JavaMail version 1.3.3
DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (SERVERNAME.DOMAIN.DV.BE) 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=servername.domain.dv.be, user=DOMAIN\USERNAME\MAILBOX_NAME, password=<non-null>
A1 LOGIN "DOMAIN\\USERNAME\\MAILBOX_NAME" password
A1 OK LOGIN completed.

h1. 1.4.4
DEBUG: setDebug: JavaMail version 1.4.4
DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
DEBUG: trying to connect to host "SERVERNAME.DOMAIN.DV.BE", port 143, isSSL false
* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (SERVERNAME.DOMAIN.DV.BE) ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
A0 OK CAPABILITY completed.
DEBUG IMAP: AUTH: NTLM
DEBUG: protocolConnect login, host=SERVERNAME.DOMAIN.DV.BE, user=DOMAIN\USERNAME\MAILBOX_NAME, password=<non-null>
A1 AUTHENTICATE NTLM
+
DEBUG NTLM: type 1 message: 4E 54 4C 4D 53 53 50 00 01 00 00 00 03 B2 00 00 05 00 05 00 28 00 00 00 08 00 08 00 20 00 00 00 44 56 57 46 30 34 38 35 44 56 53 59 53
TlRMTVNTUAABAAAAA7IAAAUABQAoAAAACAAIACAAAABEVldGMDQ4NURWU1lT
+ TlRMTVNTUAACAAAAAAAAADgAAAABggACjWJVmEtnaowAAAAAAAAAAAAAAAA4AAAABQLODgAAAA8=
DEBUG NTLM: type 3 message: 4E 54 4C 4D 53 53 50 00 03 00 00 00 18 00 18 00 88 00 00 00 18 00 18 00 A0 00 00 00 0A 00 0A 00 40 00 00 00 2E 00 2E 00 4A 00 00 00 10 00 10 00 78 00 00 00 00 00 00 00 B8 00 00 00 01 82 00 00 44 00 56 00 53 00 59 00 53 00 44 00 30 00 30 00 32 00 39 00 33 00 34 00 5C 00 44 00 56 00 56 00 4C 00 41 00 50 00 2E 00 43 00 4C 00 41 00 49 00 4D 00 53 00 5F 00 4F 00 44 00 56 00 57 00 46 00 30 00 34 00 38 00 35 00 EB 91 AA D4 9B A3 BD B8 62 5C 8F 8E 1A 39 09 F5 12 13 A8 BA B1 29 6C 9A DE C8 DF A4 91 52 4D 70 25 6B 96 DF CC DB 43 E5 6A F3 74 A4 A8 F9 DE 1E
TlRMTVNTUAADAAAAGAAYAIgAAAAYABgAoAAAAAoACgBAAAAALgAuAEoAAAAQABAAeAAAAAAAAAC4AAAAAYIAAEQAVgBTAFkAUwBEADAAMAAyADkAMwA0AFwARABWAFYATABBAFAALgBDAEwAQQBJAE0AUwBfAE8ARABWAFcARgAwADQAOAA1AOuRqtSbo724YlyPjho5CfUSE6i6sSlsmt7I36SRUk1wJWuW38zbQ+Vq83SkqPneHg==
A1 NO Logon failure: unknown user name or bad password.
DEBUG: trying to connect to host "SERVERNAME.DOMAIN.DV.BE", port 143, isSSL false
* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (SERVERNAME.DOMAIN.DV.BE) ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
A0 OK CAPABILITY completed.
DEBUG IMAP: AUTH: NTLM
DEBUG: protocolConnect login, host=SERVERNAME.DOMAIN.DV.BE, user=USERNAME, password=<non-null>
A1 AUTHENTICATE NTLM
+
DEBUG NTLM: type 1 message: 4E 54 4C 4D 53 53 50 00 01 00 00 00 03 A2 00 00 00 00 00 00 28 00 00 00 08 00 08 00 20 00 00 00 44 56 57 46 30 34 38 35
TlRMTVNTUAABAAAAA6IAAAAAAAAoAAAACAAIACAAAABEVldGMDQ4NQ==
+ TlRMTVNTUAACAAAAAAAAADgAAAABggACBWpv2GOybpwAAAAAAAAAAAAAAAA4AAAABQLODgAAAA8=
DEBUG NTLM: type 3 message: 4E 54 4C 4D 53 53 50 00 03 00 00 00 18 00 18 00 5E 00 00 00 18 00 18 00 76 00 00 00 00 00 00 00 40 00 00 00 0E 00 0E 00 40 00 00 00 10 00 10 00 4E 00 00 00 00 00 00 00 8E 00 00 00 01 82 00 00 44 00 30 00 30 00 32 00 39 00 33 00 34 00 44 00 56 00 57 00 46 00 30 00 34 00 38 00 35 00 81 DF 87 91 77 0B 0B 28 4C 7B 44 7C 0A 35 0B 70 D6 BA 09 60 71 3A B4 92 22 95 90 29 5C 6F 8D 07 6A D5 00 A4 FD 59 0A 34 02 7E E5 F6 6E 50 4E 6A
TlRMTVNTUAADAAAAGAAYAF4AAAAYABgAdgAAAAAAAABAAAAADgAOAEAAAAAQABAATgAAAAAAAACOAAAAAYIAAEQAMAAwADIAOQAzADQARABWAFcARgAwADQAOAA1AIHfh5F3CwsoTHtEfAo1C3DWuglgcTq0kiKVkClcb40HatUApP1ZCjQCfuX2blBOag==
A1 OK AUTHENTICATE completed.
A2 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
A2 OK CAPABILITY completed.
DEBUG IMAP: AUTH: NTLM

Apparently the connection with DOMAIN\USERNAME\MAILBOX_NAME fails and javamail retries to connect with USERNAME which succeeds but is actually a connection to the mailbox of USERNAME and not to the intended MAILBOX_NAME.
Is this due to the integration of NTLM and isf so can this be switched off?

regards,
Stefaan

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 9 2011
Added on Aug 12 2011
1 comment
580 views