1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

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
This commit is contained in:
mguessan 2010-07-25 19:35:10 +00:00
parent 5b9e18cda5
commit c7df65080a

View File

@ -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