From 5580774ea512381c064c050505e5373508ccc128 Mon Sep 17 00:00:00 2001 From: longping_tang Date: Tue, 20 Apr 2021 11:36:12 +0800 Subject: [PATCH] follow up 6ce3846b825b653b234d6b9d816bab849d605331 --- src/test/java/hudson/security/docker/MultiServerTest.java | 2 ++ src/test/java/hudson/security/docker/PlanetExpressTest.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/hudson/security/docker/MultiServerTest.java b/src/test/java/hudson/security/docker/MultiServerTest.java index 5b2a6aed..cf71bfa1 100644 --- a/src/test/java/hudson/security/docker/MultiServerTest.java +++ b/src/test/java/hudson/security/docker/MultiServerTest.java @@ -52,6 +52,7 @@ public class MultiServerTest { public void userLookup() throws Exception { LDAPConfiguration adsConf = new LDAPConfiguration( ads.getUrl(), + false, null, false, "uid=admin,ou=system", @@ -66,6 +67,7 @@ public void userLookup() throws Exception { LDAPConfiguration plExprs = new LDAPConfiguration( container.getHost() + ":" + container.getFirstMappedPort(), + false, PlanetExpressTest.DN, false, PlanetExpressTest.MANAGER_DN, diff --git a/src/test/java/hudson/security/docker/PlanetExpressTest.java b/src/test/java/hudson/security/docker/PlanetExpressTest.java index 4f2785f2..a123ee21 100644 --- a/src/test/java/hudson/security/docker/PlanetExpressTest.java +++ b/src/test/java/hudson/security/docker/PlanetExpressTest.java @@ -55,7 +55,7 @@ private static class Login implements RealJenkinsRule.Step { } @Override public void run(JenkinsRule j) throws Throwable { - LDAPSecurityRealm realm = new LDAPSecurityRealm(server, DN, null, null, null, null, null, MANAGER_DN, Secret.fromString(MANAGER_SECRET), false, false, null, null, "cn", "mail", null,null); + LDAPSecurityRealm realm = new LDAPSecurityRealm(server, false, DN, null, null, null, null, null, MANAGER_DN, Secret.fromString(MANAGER_SECRET), false, false, null, null, "cn", "mail", null,null); j.jenkins.setSecurityRealm(realm); j.configRoundtrip(); String content = j.createWebClient().login("fry", "fry").goTo("whoAmI").getBody().getTextContent();