From c42c3a53613e63b4fa450098bfafdbc25cca1d3d Mon Sep 17 00:00:00 2001 From: Abba Soungui YOUNOUSS Date: Wed, 12 Nov 2025 10:40:17 +0100 Subject: [PATCH] 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. --- .../java/cm/soungui/guacamole/ext/wallix/sync/Wallix.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/cm/soungui/guacamole/ext/wallix/sync/Wallix.java b/src/main/java/cm/soungui/guacamole/ext/wallix/sync/Wallix.java index 5a06a5d..63a9396 100644 --- a/src/main/java/cm/soungui/guacamole/ext/wallix/sync/Wallix.java +++ b/src/main/java/cm/soungui/guacamole/ext/wallix/sync/Wallix.java @@ -40,8 +40,6 @@ public class Wallix { private final static String TOKEN_GUACAMOLE_USERNAME = "{GUAC_USERNAME}"; - private final static String TOKEN_GUACAMOLE_PASSWORD = "{GUAC_PASSWORD}"; - private static Wallix INSTANCE; private String url; @@ -63,9 +61,9 @@ public class Wallix { url = environment.getRequiredProperty(Configuration.WALLIX_URL); user = environment.getRequiredProperty(Configuration.WALLIX_USER); 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); - userPassword = environment.getProperty(Configuration.WALLIX_USER_PASSWORD, TOKEN_GUACAMOLE_PASSWORD); + userPassword = environment.getProperty(Configuration.WALLIX_USER_PASSWORD); connectionHost = environment.getRequiredProperty(Configuration.WALLIX_CONNECTION_HOST); }