public class ServerIntegrationUtils extends IntegrationUtils
Constructor and Description |
---|
ServerIntegrationUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.directory.ldap.client.api.LdapConnection |
getClientApiConnection(LdapServer ldapServer) |
static netscape.ldap.LDAPConnection |
getWiredConnection(LdapServer ldapServer) |
static netscape.ldap.LDAPConnection |
getWiredConnection(LdapServer ldapServer,
String principalDn,
String password) |
static LdapContext |
getWiredContext(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static LdapContext |
getWiredContext(LdapServer ldapServer,
org.apache.directory.shared.ldap.message.control.Control[] controls)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static LdapContext |
getWiredContext(LdapServer ldapServer,
String principalDn,
String password)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static LdapContext |
getWiredContextFollowOnRefferal(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static LdapContext |
getWiredContextRefferalIgnore(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
static LdapContext |
getWiredContextThrowOnRefferal(LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the
SUN LDAP provider.
|
apply, closeConections, disableSchema, doDelete, enableSchema, getAdminConnection, getConnectionAs, getConnectionAs, getConnectionAs, getContext, getCoreSession, getRootContext, getSchemaContext, getSystemContext, getUserAddLdif, getUserAddLdif, injectEntries, isDisabled, isEnabled, isLoaded
public static LdapContext getWiredContext(LdapServer ldapServer) throws Exception
ldapServer
- the LDAP server to get the connection toException
- if there are problems creating the contextpublic static LdapContext getWiredContext(LdapServer ldapServer, String principalDn, String password) throws Exception
ldapServer
- the LDAP server to get the connection toException
- if there are problems creating the contextpublic static LdapContext getWiredContext(LdapServer ldapServer, org.apache.directory.shared.ldap.message.control.Control[] controls) throws Exception
ldapServer
- the LDAP server to get the connection toException
- if there are problems creating the contextpublic static LdapContext getWiredContextThrowOnRefferal(LdapServer ldapServer) throws Exception
ldapServer
- the LDAP server to get the connection toException
- if there are problems creating the contextpublic static LdapContext getWiredContextRefferalIgnore(LdapServer ldapServer) throws Exception
ldapServer
- the LDAP server to get the connection toException
- if there are problems creating the contextpublic static LdapContext getWiredContextFollowOnRefferal(LdapServer ldapServer) throws Exception
ldapServer
- the LDAP server to get the connection toException
- if there are problems creating the contextpublic static netscape.ldap.LDAPConnection getWiredConnection(LdapServer ldapServer) throws Exception
Exception
public static netscape.ldap.LDAPConnection getWiredConnection(LdapServer ldapServer, String principalDn, String password) throws Exception
Exception
public static org.apache.directory.ldap.client.api.LdapConnection getClientApiConnection(LdapServer ldapServer) throws Exception
Exception
Copyright © 2003-2013 Apache Software Foundation. All Rights Reserved.