1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-11-15 13:55:09 -05:00

EWS: force NTLM in direct EWS mode

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2315 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2014-09-04 06:45:52 +00:00
parent 732ed0ec66
commit 0791376946

View File

@ -175,6 +175,11 @@ public final class DavGatewayHttpClientFacade {
public static void configureClient(HttpClient httpClient, String url) throws DavMailException {
setClientHost(httpClient, url);
// force NTLM in direct EWS mode
if (!needNTLM && url.toLowerCase().endsWith("/ews/exchange.asmx")) {
needNTLM = true;
}
if (Settings.getBooleanProperty("davmail.enableKerberos", false)) {
AuthPolicy.registerAuthScheme("Negotiate", SpNegoScheme.class);
ArrayList<String> authPrefs = new ArrayList<String>();