Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to NTLMv2 from Java\httpclient 3\linux

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

like image 639
dov.amir Avatar asked Oct 05 '22 17:10

dov.amir


2 Answers

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

like image 54
dov.amir Avatar answered Oct 07 '22 07:10

dov.amir


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.

like image 20
rgrebski Avatar answered Oct 07 '22 07:10

rgrebski