mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUACAMOLE-197: Allow setupRadiusAuthenticator to throw GuacamoleException rather than hiding it.
This commit is contained in:
committed by
Nick Couchman
parent
3976af7b11
commit
a49dfeeeeb
@@ -110,7 +110,7 @@ public class RadiusConnectionService {
|
|||||||
* configuration fails.
|
* configuration fails.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private RadiusAuthenticator setupRadiusAuthenticator() {
|
private RadiusAuthenticator setupRadiusAuthenticator() throws GuacamoleException {
|
||||||
|
|
||||||
// If we don't have a radiusClient object, yet, don't go any further.
|
// If we don't have a radiusClient object, yet, don't go any further.
|
||||||
if (radiusClient == null) {
|
if (radiusClient == null) {
|
||||||
@@ -132,7 +132,6 @@ public class RadiusConnectionService {
|
|||||||
String basePath;
|
String basePath;
|
||||||
|
|
||||||
// Pull configuration parameters from guacamole.properties
|
// Pull configuration parameters from guacamole.properties
|
||||||
try {
|
|
||||||
guacEnv = new LocalEnvironment();
|
guacEnv = new LocalEnvironment();
|
||||||
basePath = guacEnv.getGuacamoleHome().getAbsolutePath() + '/';
|
basePath = guacEnv.getGuacamoleHome().getAbsolutePath() + '/';
|
||||||
radAuthName = confService.getRadiusAuthProtocol();
|
radAuthName = confService.getRadiusAuthProtocol();
|
||||||
@@ -145,13 +144,6 @@ public class RadiusConnectionService {
|
|||||||
trustAll = confService.getRadiusTrustAll();
|
trustAll = confService.getRadiusTrustAll();
|
||||||
innerProtocol = confService.getRadiusEAPTTLSInnerProtocol();
|
innerProtocol = confService.getRadiusEAPTTLSInnerProtocol();
|
||||||
|
|
||||||
}
|
|
||||||
catch (GuacamoleException e) {
|
|
||||||
logger.error("Error retrieving configuration.");
|
|
||||||
logger.debug("Error getting config parameters from file.");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
RadiusAuthenticator radAuth = radiusClient.getAuthProtocol(radAuthName);
|
RadiusAuthenticator radAuth = radiusClient.getAuthProtocol(radAuthName);
|
||||||
if (radAuth == null)
|
if (radAuth == null)
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user