Description
Hello,
this has cost me some hours to debug :(
See here: https://github.com/spring-projects/spring-ldap/blob/master/test-support-unboundid/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java#L43
The unboundid
part of the spring-ldap-test has hard-coded credentials, making it impossible to use the org.springframework.ldap.test.unboundid.LdapTestUtils
or other classes utlizing this (like the very useful org.springframework.ldap.test.unboundid.EmbeddedLdapServerFactoryBean
) with different credentials, even if the API and the documentation clearly say so. The existing test does not catch this as it tests the code with exactly the hardcoded credentials.
IMHO the API of LdapTestUtils
should be changed to require the user/password always.