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 2014-09-04 06:45:52 +00:00
parent 732ed0ec66
commit 0791376946
1 changed files with 5 additions and 0 deletions

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>();