Remove automatic use of authenticated user's password for connection to

Wallix, when the parameter is not set.

In previous commit, when parameter wallix-user-password was not provided
in configuration file, the password used to authenticated to Guacamole
would automatically be used for connection to Wallix. This commit change
this behavior and for now, the password will be prompted if the
parameter is not set. If automatic login is needed, the value
${GUAC_PASSWORD} must be set manually.
This commit is contained in:
2025-11-12 10:40:17 +01:00
parent 603175febc
commit c42c3a5361

View File

@@ -40,8 +40,6 @@ public class Wallix {
private final static String TOKEN_GUACAMOLE_USERNAME = "{GUAC_USERNAME}"; private final static String TOKEN_GUACAMOLE_USERNAME = "{GUAC_USERNAME}";
private final static String TOKEN_GUACAMOLE_PASSWORD = "{GUAC_PASSWORD}";
private static Wallix INSTANCE; private static Wallix INSTANCE;
private String url; private String url;
@@ -63,9 +61,9 @@ public class Wallix {
url = environment.getRequiredProperty(Configuration.WALLIX_URL); url = environment.getRequiredProperty(Configuration.WALLIX_URL);
user = environment.getRequiredProperty(Configuration.WALLIX_USER); user = environment.getRequiredProperty(Configuration.WALLIX_USER);
authKey = environment.getRequiredProperty(Configuration.WALLIX_AUTH_KEY); authKey = environment.getRequiredProperty(Configuration.WALLIX_AUTH_KEY);
usernamePrefix = environment.getRequiredProperty(Configuration.WALLIX_USERNAME_PREFIX); usernamePrefix = environment.getProperty(Configuration.WALLIX_USERNAME_PREFIX, "");
usernameSuffix = environment.getProperty(Configuration.WALLIX_USERNAME_SUFFIX, TOKEN_GUACAMOLE_USERNAME); usernameSuffix = environment.getProperty(Configuration.WALLIX_USERNAME_SUFFIX, TOKEN_GUACAMOLE_USERNAME);
userPassword = environment.getProperty(Configuration.WALLIX_USER_PASSWORD, TOKEN_GUACAMOLE_PASSWORD); userPassword = environment.getProperty(Configuration.WALLIX_USER_PASSWORD);
connectionHost = environment.getRequiredProperty(Configuration.WALLIX_CONNECTION_HOST); connectionHost = environment.getRequiredProperty(Configuration.WALLIX_CONNECTION_HOST);
} }