From c7df65080a1f4efec43b98ef09e0ff19b36813f1 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sun, 25 Jul 2010 19:35:10 +0000 Subject: [PATCH] Disable preemptive authentication when adding NTLM scheme git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1270 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/http/DavGatewayHttpClientFacade.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/davmail/http/DavGatewayHttpClientFacade.java b/src/java/davmail/http/DavGatewayHttpClientFacade.java index 8f378cad..d3cf8653 100644 --- a/src/java/davmail/http/DavGatewayHttpClientFacade.java +++ b/src/java/davmail/http/DavGatewayHttpClientFacade.java @@ -418,6 +418,8 @@ public final class DavGatewayHttpClientFacade { * @param httpClient HttpClient instance */ public static void addNTLM(HttpClient httpClient) { + // disable preemptive authentication + httpClient.getParams().setParameter(HttpClientParams.PREEMPTIVE_AUTHENTICATION, false); // NTLM authentication uses persistent connections, use private connection manager httpClient.setHttpConnectionManager(createConnectionManager()); // register the jcifs based NTLMv2 implementation