necouchman commented on a change in pull request #437: GUACAMOLE-769: Polish 
the RADIUS challenge box
URL: https://github.com/apache/guacamole-client/pull/437#discussion_r312756618
 
 

 ##########
 File path: 
extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/AuthenticationProviderService.java
 ##########
 @@ -97,13 +106,17 @@ private CredentialsInfo getRadiusChallenge(RadiusPacket 
challengePacket) {
         }
 
         // We have the required attributes - convert to strings and then 
generate the additional login box/field
-        String replyMsg = replyAttr.toString();
+        logger.debug("Received challenge: {}", replyAttr.toString());
+        String replyMsg = replyAttr.toString().split(" = ", 2)[1];
 
 Review comment:
   Well, two things, here:
   * In order to get the "Reply-Message = " out of here, I need to split it.  
Not sure how feasible this is with an `AttributeValue` type?
   * It ends up getting passed through the form on the Web side.  Is this going 
to play okay with using `AttributeValue` vs. `String`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to