necouchman commented on a change in pull request #392: GUACAMOLE-774: Add in 
MD4 support for MSCHAPv1/2
URL: https://github.com/apache/guacamole-client/pull/392#discussion_r276471178
 
 

 ##########
 File path: 
extensions/guacamole-auth-radius/src/main/java/org/apache/guacamole/auth/radius/RadiusConnectionService.java
 ##########
 @@ -129,6 +133,18 @@ private RadiusAuthenticator 
setupRadiusAuthenticator(RadiusClient radiusClient)
         if (radAuth == null)
             throw new GuacamoleException("Could not get a valid 
RadiusAuthenticator for specified protocol: " + 
confService.getRadiusAuthProtocol());
 
+        // For MSCHAPv1/2, we need MD4 support
+        if (radAuth instanceof MSCHAPv1Authenticator
+                || radAuth instanceof MSCHAPv2Authenticator) {
+            
+            Security.addProvider(new Provider("MD4", 0.00, "MD4 for MSCHAPv1/2 
RADIUS") {
 
 Review comment:
   Okay, I've put the initialization for this into the Guice module, which I 
think will suffice to load it only a single time.
   
   I queried the JRadius repository for any other instances of "MD4", and the 
MSCHAP library is the only place it shows up, so I think that covers the 
requirement:
   https://github.com/coova/jradius/search?q=MD4&unscoped_q=MD4

----------------------------------------------------------------
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