Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ public String getUser() {
return String.format("cn=admin,ou=people,%s", getBaseDn());
}

@Deprecated
public String getUserPass() {
return getEnvMap().getOrDefault("LLDAP_LDAP_USER_PASS", "password");
}

public String getPassword() {
return getEnvMap().getOrDefault("LLDAP_LDAP_USER_PASS", "password");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void test() throws LDAPException {
) {
lldap.start();
LDAPConnection connection = new LDAPConnection(lldap.getHost(), lldap.getLdapPort());
BindResult result = connection.bind(lldap.getUser(), lldap.getUserPass());
BindResult result = connection.bind(lldap.getUser(), lldap.getPassword());
assertThat(result).isNotNull();
}
}
Expand All @@ -30,7 +30,7 @@ public void testUsingLdapUrl() throws LDAPException {

LDAPURL ldapUrl = new LDAPURL(lldap.getLdapUrl());
LDAPConnection connection = new LDAPConnection(ldapUrl.getHost(), ldapUrl.getPort());
BindResult result = connection.bind(lldap.getUser(), lldap.getUserPass());
BindResult result = connection.bind(lldap.getUser(), lldap.getPassword());
assertThat(result).isNotNull();
}
}
Expand All @@ -47,7 +47,7 @@ public void testWithCustomBaseDn() throws LDAPException {

LDAPURL ldapUrl = new LDAPURL(lldap.getLdapUrl());
LDAPConnection connection = new LDAPConnection(ldapUrl.getHost(), ldapUrl.getPort());
BindResult result = connection.bind(lldap.getUser(), lldap.getUserPass());
BindResult result = connection.bind(lldap.getUser(), lldap.getPassword());
assertThat(result).isNotNull();
}
}
Expand All @@ -59,7 +59,7 @@ public void testWithCustomUserPass() throws LDAPException {

LDAPURL ldapUrl = new LDAPURL(lldap.getLdapUrl());
LDAPConnection connection = new LDAPConnection(ldapUrl.getHost(), ldapUrl.getPort());
BindResult result = connection.bind(lldap.getUser(), lldap.getUserPass());
BindResult result = connection.bind(lldap.getUser(), lldap.getPassword());
assertThat(result).isNotNull();
}
}
Expand Down
Loading