Skip to content

Commit

Permalink
follow up 6ce3846
Browse files Browse the repository at this point in the history
  • Loading branch information
longping_tang authored and longping_tang committed Apr 20, 2021
1 parent 6ce3846 commit 5580774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/test/java/hudson/security/docker/MultiServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -66,6 +67,7 @@ public void userLookup() throws Exception {

LDAPConfiguration plExprs = new LDAPConfiguration(
container.getHost() + ":" + container.getFirstMappedPort(),
false,
PlanetExpressTest.DN,
false,
PlanetExpressTest.MANAGER_DN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5580774

Please sign in to comment.