mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
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,7 +170,12 @@ public class CaldavConnection extends AbstractConnection {
|
||||
session = ExchangeSessionFactory.getInstance(userName, password);
|
||||
handleRequest(command, path, headers, content);
|
||||
} catch (DavMailAuthenticationException e) {
|
||||
sendUnauthorized();
|
||||
if (Settings.getBooleanProperty("davmail.enableKerberos")) {
|
||||
// authentication failed in Kerberos mode => not available
|
||||
sendErr(HttpStatus.SC_SERVICE_UNAVAILABLE, "Kerberos authentication failed");
|
||||
} else {
|
||||
sendUnauthorized();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user