mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 17:31:52 -05:00
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:
parent
c114edda33
commit
3cfc3c8b7b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user