public class ServerIntegrationUtils extends IntegrationUtils
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CTX_FACTORY |
private static java.lang.String |
DEFAULT_ADMIN |
private static java.lang.String |
DEFAULT_PASSWORD |
private static int |
DEFAULT_PORT |
private static org.slf4j.Logger |
LOG
The class logger
|
| Constructor and Description |
|---|
ServerIntegrationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.ldap.client.api.LdapConnection |
getAdminConnection(LdapServer ldapServer)
Gets a LDAP connection instance on a server.
|
static org.apache.directory.ldap.client.api.LdapConnection |
getLdapConnection(LdapServer ldapServer)
Gets a LDAP connection instance on a server.
|
static netscape.ldap.LDAPConnection |
getNsdkWiredConnection(LdapServer ldapServer) |
static netscape.ldap.LDAPConnection |
getNsdkWiredConnection(LdapServer ldapServer,
java.lang.String principalDn,
java.lang.String password)
Gets a LDAP connection instance on a server, authenticating a user.
|
static org.apache.directory.ldap.client.api.LdapConnection |
getWiredConnection(LdapServer ldapServer) |
static org.apache.directory.ldap.client.api.LdapConnection |
getWiredConnection(LdapServer ldapServer,
java.lang.String principalDn,
java.lang.String password)
Gets a LDAP connection instance on a server, authenticating a user.
|
static javax.naming.ldap.LdapContext |
getWiredContext(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static javax.naming.ldap.LdapContext |
getWiredContext(LdapServer ldapServer,
org.apache.directory.api.ldap.model.message.Control[] controls)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static javax.naming.ldap.LdapContext |
getWiredContext(LdapServer ldapServer,
java.lang.String principalDn,
java.lang.String password)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static javax.naming.ldap.LdapContext |
getWiredContextFollowOnRefferal(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static javax.naming.ldap.LdapContext |
getWiredContextRefferalIgnore(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static javax.naming.ldap.LdapContext |
getWiredContextThrowOnRefferal(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
apply, closeConnections, disableSchema, doDelete, enableSchema, getAdminConnection, getAdminNetworkConnection, getAnonymousNetworkConnection, getAnonymousNetworkConnection, getConnectionAs, getConnectionAs, getContext, getCoreSession, getNetworkConnectionAs, getNetworkConnectionAs, getRootContext, getSchemaContext, getSystemContext, getUserAddLdif, getUserAddLdif, injectEntries, isDisabled, isEnabled, isLoadedprivate static final org.slf4j.Logger LOG
private static final java.lang.String CTX_FACTORY
private static final int DEFAULT_PORT
private static final java.lang.String DEFAULT_ADMIN
private static final java.lang.String DEFAULT_PASSWORD
public static javax.naming.ldap.LdapContext getWiredContext(LdapServer ldapServer) throws java.lang.Exception
ldapServer - the LDAP server to get the connection tojava.lang.Exception - if there are problems creating the contextpublic static javax.naming.ldap.LdapContext getWiredContext(LdapServer ldapServer, java.lang.String principalDn, java.lang.String password) throws java.lang.Exception
ldapServer - the LDAP server to get the connection tojava.lang.Exception - if there are problems creating the contextpublic static javax.naming.ldap.LdapContext getWiredContext(LdapServer ldapServer, org.apache.directory.api.ldap.model.message.Control[] controls) throws java.lang.Exception
ldapServer - the LDAP server to get the connection tojava.lang.Exception - if there are problems creating the contextpublic static javax.naming.ldap.LdapContext getWiredContextThrowOnRefferal(LdapServer ldapServer) throws java.lang.Exception
ldapServer - the LDAP server to get the connection tojava.lang.Exception - if there are problems creating the contextpublic static javax.naming.ldap.LdapContext getWiredContextRefferalIgnore(LdapServer ldapServer) throws java.lang.Exception
ldapServer - the LDAP server to get the connection tojava.lang.Exception - if there are problems creating the contextpublic static javax.naming.ldap.LdapContext getWiredContextFollowOnRefferal(LdapServer ldapServer) throws java.lang.Exception
ldapServer - the LDAP server to get the connection tojava.lang.Exception - if there are problems creating the contextpublic static org.apache.directory.ldap.client.api.LdapConnection getWiredConnection(LdapServer ldapServer) throws java.lang.Exception
java.lang.Exceptionpublic static netscape.ldap.LDAPConnection getNsdkWiredConnection(LdapServer ldapServer) throws java.lang.Exception
java.lang.Exceptionpublic static org.apache.directory.ldap.client.api.LdapConnection getWiredConnection(LdapServer ldapServer, java.lang.String principalDn, java.lang.String password) throws java.lang.Exception
ldapServer - The server we want to connect toprincipalDn - The user's DNpassword - The user's passwordjava.lang.Exception - If the connection cannot be createdpublic static org.apache.directory.ldap.client.api.LdapConnection getLdapConnection(LdapServer ldapServer) throws java.lang.Exception
ldapServer - The server we want to connect tojava.lang.Exception - If the connection cannot be createdpublic static netscape.ldap.LDAPConnection getNsdkWiredConnection(LdapServer ldapServer, java.lang.String principalDn, java.lang.String password) throws java.lang.Exception
ldapServer - The server we want to connect toprincipalDn - The user's DNpassword - The user's passwordjava.lang.Exception - If the connection cannot be createdpublic static org.apache.directory.ldap.client.api.LdapConnection getAdminConnection(LdapServer ldapServer) throws java.lang.Exception
ldapServer - The server we want to connect tojava.lang.Exception - If the connection cannot be created