Skip to content

test-support-unboundid EmbeddedLdapServer has hard-coded credentials #576

Closed
@Interessierter

Description

@Interessierter

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions