EWS: enable preemptive authentication on non NTLM endpoints
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1854 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
e7fdf4dcba
commit
b163176284
|
@ -34,6 +34,7 @@ import org.apache.commons.httpclient.*;
|
||||||
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
|
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
|
||||||
import org.apache.commons.httpclient.methods.GetMethod;
|
import org.apache.commons.httpclient.methods.GetMethod;
|
||||||
import org.apache.commons.httpclient.methods.PostMethod;
|
import org.apache.commons.httpclient.methods.PostMethod;
|
||||||
|
import org.apache.commons.httpclient.params.HttpClientParams;
|
||||||
|
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
import javax.mail.Session;
|
import javax.mail.Session;
|
||||||
|
@ -235,6 +236,11 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// enable preemptive authentication on non NTLM endpoints
|
||||||
|
if (!DavGatewayHttpClientFacade.hasNTLM(httpClient)) {
|
||||||
|
httpClient.getParams().setParameter(HttpClientParams.PREEMPTIVE_AUTHENTICATION, true);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
folderIdMap = new HashMap<String, String>();
|
folderIdMap = new HashMap<String, String>();
|
||||||
// load actual well known folder ids
|
// load actual well known folder ids
|
||||||
|
|
Loading…
Reference in New Issue