1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

Some Exchange servers redirect to a different host for freebusy, use wide auth scope

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@781 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-10-15 21:05:32 +00:00
parent 6edbca54d4
commit 53ddf0ef49

View File

@ -97,7 +97,8 @@ public final class DavGatewayHttpClientFacade {
try {
URI httpURI = new URI(url, true);
hostConfig.setHost(httpURI);
AuthScope authScope = new AuthScope(httpURI.getHost(), httpURI.getPort(), AuthScope.ANY_REALM);
// some Exchange servers redirect to a different host for freebusy, use wide auth scope
AuthScope authScope = new AuthScope(null, -1);
httpClient.getState().setCredentials(authScope, new UsernamePasswordCredentials(userName, password));
} catch (URIException e) {
throw new DavMailException("LOG_INVALID_URL", url);