use of org.apache.directory.shared.ldap.model.name.Dn in project activemq-artemis by apache.
the class CachedLDAPAuthorizationModuleLegacyTest method getLdapConnection.
@Override
protected LdapConnection getLdapConnection() throws LdapException, IOException {
LdapConnection connection = new LdapNetworkConnection("localhost", getLdapServer().getPort());
connection.bind(new Dn("uid=admin,ou=system"), "secret");
return connection;
}
use of org.apache.directory.shared.ldap.model.name.Dn in project activemq-artemis by apache.
the class CachedLDAPAuthorizationModuleOpenLDAPTest method getLdapConnection.
@Override
protected LdapConnection getLdapConnection() throws LdapException, IOException {
LdapConnection connection = new LdapNetworkConnection(LDAP_HOST, LDAP_PORT);
connection.bind(new Dn(LDAP_USER), LDAP_PASS);
return connection;
}
Aggregations