Caldav: do not send 401 on authentication error in Kerberos mode
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2072 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
acda06a8d8
commit
98c2e0d933
|
@ -170,9 +170,14 @@ public class CaldavConnection extends AbstractConnection {
|
||||||
session = ExchangeSessionFactory.getInstance(userName, password);
|
session = ExchangeSessionFactory.getInstance(userName, password);
|
||||||
handleRequest(command, path, headers, content);
|
handleRequest(command, path, headers, content);
|
||||||
} catch (DavMailAuthenticationException e) {
|
} catch (DavMailAuthenticationException e) {
|
||||||
|
if (Settings.getBooleanProperty("davmail.enableKerberos")) {
|
||||||
|
// authentication failed in Kerberos mode => not available
|
||||||
|
sendErr(HttpStatus.SC_SERVICE_UNAVAILABLE, "Kerberos authentication failed");
|
||||||
|
} else {
|
||||||
sendUnauthorized();
|
sendUnauthorized();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
os.flush();
|
os.flush();
|
||||||
DavGatewayTray.resetIcon();
|
DavGatewayTray.resetIcon();
|
||||||
|
|
Loading…
Reference in New Issue