aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2023-11-13 13:59:57 +0100
committersonartech <sonartech@sonarsource.com>2023-11-13 20:02:32 +0000
commit081fbbc6d906b6eebb9098ee0a925a11d5bd6029 (patch)
tree639022019346bcb026805d5cbb31660d4f1b9583
parent46e2b86bd834658de555c3e64bef150909f3e9dc (diff)
downloadsonarqube-081fbbc6d906b6eebb9098ee0a925a11d5bd6029.tar.gz
sonarqube-081fbbc6d906b6eebb9098ee0a925a11d5bd6029.zip
NOJIRA Fix a code smell
-rw-r--r--sonar-testing-ldap/src/main/java/org/sonar/ldap/ApacheDS.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-testing-ldap/src/main/java/org/sonar/ldap/ApacheDS.java b/sonar-testing-ldap/src/main/java/org/sonar/ldap/ApacheDS.java
index 9aa94d31483..184ffb616ec 100644
--- a/sonar-testing-ldap/src/main/java/org/sonar/ldap/ApacheDS.java
+++ b/sonar-testing-ldap/src/main/java/org/sonar/ldap/ApacheDS.java
@@ -186,7 +186,7 @@ public final class ApacheDS {
mechanismHandlerMap.put(SupportedSaslMechanisms.GSSAPI, new GssapiMechanismHandler());
ldapServer.setSaslMechanismHandlers(mechanismHandlerMap);
- ldapServer.setSaslHost("localhost");
+ ldapServer.setSaslHost(HOSTNAME_LOCALHOST);
ldapServer.setSaslRealms(Collections.singletonList(realm));
// TODO ldapServer.setSaslPrincipal();
// The base DN containing users that can be SASL authenticated.