Browse Source

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
master
mguessan 9 years ago
parent
commit
0791376946
  1. 5
      src/java/davmail/http/DavGatewayHttpClientFacade.java

5
src/java/davmail/http/DavGatewayHttpClientFacade.java

@ -175,6 +175,11 @@ public final class DavGatewayHttpClientFacade { @@ -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>();

Loading…
Cancel
Save