Hello!
This might not be the best place for this question but seemed like where the experience base would be.
I’m helping the team that runs our Jenkins instance move to LDAP authentication and we ran into a situation where it would fail some users due to the LDAP management stack being used uses pwdLockout to mean something different than the plugin assumes. It was decided that the more practical solution was to manage a copy of the plugin that handles that check differently. Easy enough, just changing a string constant.
However, using the instructions, it seems to fail to build? I expect this is because there is some expectation I don’t have that it has for running the tests:
[ERROR] hudson.security.LdapMultiEmbeddedTest.loginWithBrokenServerInTheMiddle Time elapsed: 99.408 s <<< FAILURE!
java.lang.AssertionError: hnelson should not be able to login because there is a broken server in between
at org.junit.Assert.fail(Assert.java:89)
at hudson.security.LdapMultiEmbeddedTest.loginWithBrokenServerInTheMiddle(LdapMultiEmbeddedTest.java:147)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54)
at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:608)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:833)
Any pointers?
Apache Maven 3.8.5 (Red Hat 3.8.5-3)
Maven home: /usr/share/maven
Java version: 17.0.7, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.7.0.7-5.fc37.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.3.8-100.fc37.x86_64", arch: "amd64", family: "unix"