GUACAMOLE-2181: Clarify log messages for RADIUS challenge parsing failures.

This commit is contained in:
Michael Jumper committed 2025-12-12 12:37:06 -08:00
1 parent 42f450315e
commit 5ad5a46cfe
1 file changed
+6 -2
@@ -94,14 +94,18 @@ public class AuthenticationProviderService {
// Try to get the state attribute - if it's not there, we have a problem // Try to get the state attribute - if it's not there, we have a problem
RadiusAttribute stateAttr = challengePacket.findAttribute(Attr_State.TYPE); RadiusAttribute stateAttr = challengePacket.findAttribute(Attr_State.TYPE);
if (stateAttr == null) { if (stateAttr == null) {
logger.error("Something went wrong, state attribute not present."); logger.error("RADIUS server did not include the required \"{}\" "
+ "attribute in its challenge packet - cannot continue.",
Attr_State.NAME);
return null; return null;
} }
// We need to get the reply message so we know what to ask the user // We need to get the reply message so we know what to ask the user
RadiusAttribute replyAttr = challengePacket.findAttribute(Attr_ReplyMessage.TYPE); RadiusAttribute replyAttr = challengePacket.findAttribute(Attr_ReplyMessage.TYPE);
if (replyAttr == null) { if (replyAttr == null) {
logger.error("No reply message received from the server."); logger.error("RADIUS server did not include the required \"{}\" "
+ "attribute in its challenge packet - cannot continue.",
Attr_ReplyMessage.NAME);
return null; return null;
} }