GUACAMOLE-774: Fix RadiusConnectionservice class initilization for use with Guice.

This commit is contained in:
Virtually Nick
2019-04-17 16:48:51 -04:00
parent 10e29288b0
commit a97e1113c3

View File

@@ -72,13 +72,10 @@ public class RadiusConnectionService {
* Set up a new instance of this class, and check the provided
* authentication protocol. If the protocol requires MD4 support,
* this loads the required security providers.
*
* @throws GuacamoleException
* If guacamole.properties cannot be parsed or an invalid
* authentication protocol is provided.
*/
public RadiusConnectionService() throws GuacamoleException {
public RadiusConnectionService() {
try {
RadiusAuthenticationProtocol authProtocol = confService.getRadiusAuthProtocol();
// Check for MS-CHAP and add MD4 support
@@ -93,6 +90,10 @@ public class RadiusConnectionService {
});
}
} catch(GuacamoleException e) {
logger.error("Could not retrieve RADIUS authentication protocol: {}", e.getMessage());
logger.debug("Failed to determine authentication protocol", e);
}
}