There was an error while loading. Please reload this page.
1 parent bbda522 commit b9213e8Copy full SHA for b9213e8
1 file changed
roda-core/roda-core-tests/src/main/java/org/roda/core/security/LdapUtilityTestHelper.java
@@ -58,7 +58,7 @@ public LdapUtilityTestHelper() {
58
context.refresh();
59
LdapTemplate ldapTemplate = context.getBean(LdapTemplate.class);
60
LdapContextSource contextSource = (LdapContextSource) ldapTemplate.getContextSource();
61
- contextSource.setUrl(RodaConstants.CORE_LDAP_DEFAULT_URL + ":" + openldap.getMappedPort(1389));
+ contextSource.setUrl("ldap://" + openldap.getHost() + ":" + openldap.getMappedPort(1389));
62
contextSource.afterPropertiesSet();
63
LdapUserRepository ldapUserRepository = context.getBean(LdapUserRepository.class);
64
LdapGroupRepository ldapGroupRepository = context.getBean(LdapGroupRepository.class);
0 commit comments