Set NTLM as last authentication scheme

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@670 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-08-13 20:55:09 +00:00
parent c114edda33
commit 3cfc3c8b7b
1 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,13 @@ public final class DavGatewayHttpClientFacade {
public static void configureClient(HttpClient httpClient) {
httpClient.setHttpConnectionManager(multiThreadedHttpConnectionManager);
ArrayList<String> authPrefs = new ArrayList<String>();
authPrefs.add(AuthPolicy.DIGEST);
authPrefs.add(AuthPolicy.BASIC);
// set NTLM as last authentication scheme
authPrefs.add(AuthPolicy.NTLM);
httpClient.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);
boolean enableProxy = Settings.getBooleanProperty("davmail.enableProxy");
String proxyHost = null;
int proxyPort = 0;