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

Workaround for basic authentication on /exchange and form based authentication at /owa

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1438 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-10 13:24:07 +00:00
parent 432a4df97e
commit 88d93893d9

View File

@ -168,6 +168,10 @@ public abstract class ExchangeSession {
method.releaseConnection();
throw DavGatewayHttpClientFacade.buildHttpException(method);
}
// workaround for basic authentication on /exchange and form based authentication at /owa
if ("/owa/auth/logon.aspx".equals(method.getPath())) {
method = formLogin(httpClient, method, userName, password);
}
} else {
method = formLogin(httpClient, method, userName, password);
}