mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
Fix regression in Form Based Authentication: detect Exchange 2007 UserContext cookie
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@844 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
ea9c8239b4
commit
955b36060a
@ -465,7 +465,10 @@ public class ExchangeSession {
|
|||||||
protected boolean isAuthenticated() {
|
protected boolean isAuthenticated() {
|
||||||
boolean authenticated = false;
|
boolean authenticated = false;
|
||||||
for (Cookie cookie : httpClient.getState().getCookies()) {
|
for (Cookie cookie : httpClient.getState().getCookies()) {
|
||||||
if (cookie.getName().startsWith("cadata") || "sessionid".equals(cookie.getName())) {
|
// Exchange 2003 cookies
|
||||||
|
if (cookie.getName().startsWith("cadata") || "sessionid".equals(cookie.getName())
|
||||||
|
// Exchange 2007 cookie
|
||||||
|
|| "UserContext".equals(cookie.getName())) {
|
||||||
authenticated = true;
|
authenticated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1393,6 +1396,7 @@ public class ExchangeSession {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return permanent message url.
|
* Return permanent message url.
|
||||||
|
*
|
||||||
* @return permanent message url
|
* @return permanent message url
|
||||||
* @throws URIException on error
|
* @throws URIException on error
|
||||||
*/
|
*/
|
||||||
@ -1402,6 +1406,7 @@ public class ExchangeSession {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return encoded message name.
|
* Return encoded message name.
|
||||||
|
*
|
||||||
* @return encoded message name
|
* @return encoded message name
|
||||||
* @throws IOException on error
|
* @throws IOException on error
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user