diff --git a/kyuubi-common/src/test/scala/org/apache/kyuubi/service/authentication/WithLdapServer.scala b/kyuubi-common/src/test/scala/org/apache/kyuubi/service/authentication/WithLdapServer.scala index 7506399ccd0..0d5293e5158 100644 --- a/kyuubi-common/src/test/scala/org/apache/kyuubi/service/authentication/WithLdapServer.scala +++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/service/authentication/WithLdapServer.scala @@ -30,7 +30,8 @@ class WithLdapServer extends KyuubiFunSuite { override def beforeAll(): Unit = { val config = new InMemoryDirectoryServerConfig("ou=users") - config.addAdditionalBindCredentials(s"uid=${user},ou=users", password) + config.setBaseDNs("ou=users") + config.addAdditionalBindCredentials(s"uid=$user,ou=users", password) ldapServer = new InMemoryDirectoryServer() ldapServer.startListening() super.beforeAll()