From ba369a2c2b2340d77de3de800870cf6603d429d4 Mon Sep 17 00:00:00 2001 From: Tomohiro Nagai Date: Wed, 9 Mar 2022 23:54:44 +0900 Subject: [PATCH] Support for communication timeout with kerberos server Closes #10668 --- .../kerberos/impl/KerberosUsernamePasswordAuthenticator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/federation/kerberos/src/main/java/org/keycloak/federation/kerberos/impl/KerberosUsernamePasswordAuthenticator.java b/federation/kerberos/src/main/java/org/keycloak/federation/kerberos/impl/KerberosUsernamePasswordAuthenticator.java index f06ca930d6..e210be896f 100644 --- a/federation/kerberos/src/main/java/org/keycloak/federation/kerberos/impl/KerberosUsernamePasswordAuthenticator.java +++ b/federation/kerberos/src/main/java/org/keycloak/federation/kerberos/impl/KerberosUsernamePasswordAuthenticator.java @@ -104,7 +104,8 @@ public class KerberosUsernamePasswordAuthenticator { message.contains("CANNOT LOCATE") || message.contains("CANNOT CONTACT") || message.contains("CANNOT FIND") || - message.contains("UNKNOWN ERROR")) { + message.contains("UNKNOWN ERROR") || + message.contains("RECEIVE TIMED OUT")) { throw new ModelException("Kerberos unreachable", le); } }