5

I am using MAC and LINUX, java6 and apache http-client 3.1 to connect to sharepoint with NTLM auth.

I connect to ntlm using http://jcifs.samba.org/ and it worked fine until I had to connect to NTLMv2. I tried this http://devsac.blogspot.com/2010/10/supoprt-for-ntlmv2-with-apache.html but it doesnt work for me with NTLMv2,

Is there any way to make my httpclient 3.1 connect to NTLMv2 ? if not, is there a way to connect java to NTLMv2 without httpclient?

thanks

dov.amir
  • 11,489
  • 7
  • 45
  • 51
  • btw, I make sure the sharepoint side is using NTLMv2 by checking the "require NTLMv2 session security" checkbox, according to http://www.websense.com/support/article/kbarticle/How-do-I-Check-NTLM-Version-for-XID-Compatibility – dov.amir Mar 14 '13 at 12:51

2 Answers2

2

found an answer, httpclient version 4.2.3 + supports NTLMv2 out of the box

dov.amir
  • 11,489
  • 7
  • 45
  • 51
  • jespa is another library (not free) which connects java code to NTLMv2. I believe, Jespa is created by same guys who created jcifs/NTLM modules. – Bimalesh Jha Mar 22 '13 at 17:57
2

I was able to connect to ntlm v2 using httpclient 3.1: http://devsac.blogspot.com/2010/10/supoprt-for-ntlmv2-with-apache.html?showComment=1381849801529#c7263680121593236558

Btw - httpclient 4.x supports ntlm v2 out of the box.

rgrebski
  • 2,354
  • 20
  • 29