From 081fbbc6d906b6eebb9098ee0a925a11d5bd6029 Mon Sep 17 00:00:00 2001 From: Antoine Vigneau Date: Mon, 13 Nov 2023 13:59:57 +0100 Subject: [PATCH] NOJIRA Fix a code smell --- sonar-testing-ldap/src/main/java/org/sonar/ldap/ApacheDS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5