|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.server.core.integ.IntegrationUtils
org.apache.directory.server.integ.ServerIntegrationUtils
public class ServerIntegrationUtils
| Constructor Summary | |
|---|---|
ServerIntegrationUtils()
|
|
| Method Summary | |
|---|---|
static org.apache.directory.ldap.client.api.LdapConnection |
getAdminConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
Gets a LDAP connection instance on a server. |
static org.apache.directory.ldap.client.api.LdapConnection |
getLdapConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
Gets a LDAP connection instance on a server. |
static netscape.ldap.LDAPConnection |
getNsdkWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
|
static netscape.ldap.LDAPConnection |
getNsdkWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer,
String principalDn,
String password)
Gets a LDAP connection instance on a server, authenticating a user. |
static org.apache.directory.ldap.client.api.LdapConnection |
getWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
|
static org.apache.directory.ldap.client.api.LdapConnection |
getWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer,
String principalDn,
String password)
Gets a LDAP connection instance on a server, authenticating a user. |
static LdapContext |
getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the SUN LDAP provider. |
static LdapContext |
getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer,
org.apache.directory.shared.ldap.model.message.Control[] controls)
Creates a JNDI LdapContext with a connection over the wire using the SUN LDAP provider. |
static LdapContext |
getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer,
String principalDn,
String password)
Creates a JNDI LdapContext with a connection over the wire using the SUN LDAP provider. |
static LdapContext |
getWiredContextFollowOnRefferal(org.apache.directory.server.ldap.LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the SUN LDAP provider. |
static LdapContext |
getWiredContextRefferalIgnore(org.apache.directory.server.ldap.LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the SUN LDAP provider. |
static LdapContext |
getWiredContextThrowOnRefferal(org.apache.directory.server.ldap.LdapServer ldapServer)
Creates a JNDI LdapContext with a connection over the wire using the SUN LDAP provider. |
| Methods inherited from class org.apache.directory.server.core.integ.IntegrationUtils |
|---|
apply, closeConnections, disableSchema, doDelete, enableSchema, getAdminConnection, getAdminNetworkConnection, getConnectionAs, getConnectionAs, getContext, getCoreSession, getNetworkConnectionAs, getNetworkConnectionAs, getRootContext, getSchemaContext, getSystemContext, getUserAddLdif, getUserAddLdif, injectEntries, isDisabled, isEnabled, isLoaded |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerIntegrationUtils()
| Method Detail |
|---|
public static LdapContext getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
ldapServer - the LDAP server to get the connection to
Exception - if there are problems creating the context
public static LdapContext getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer,
String principalDn,
String password)
throws Exception
ldapServer - the LDAP server to get the connection to
Exception - if there are problems creating the context
public static LdapContext getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer,
org.apache.directory.shared.ldap.model.message.Control[] controls)
throws Exception
ldapServer - the LDAP server to get the connection to
Exception - if there are problems creating the context
public static LdapContext getWiredContextThrowOnRefferal(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
ldapServer - the LDAP server to get the connection to
Exception - if there are problems creating the context
public static LdapContext getWiredContextRefferalIgnore(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
ldapServer - the LDAP server to get the connection to
Exception - if there are problems creating the context
public static LdapContext getWiredContextFollowOnRefferal(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
ldapServer - the LDAP server to get the connection to
Exception - if there are problems creating the context
public static org.apache.directory.ldap.client.api.LdapConnection getWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
Exception
public static netscape.ldap.LDAPConnection getNsdkWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
Exception
public static org.apache.directory.ldap.client.api.LdapConnection getWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer,
String principalDn,
String password)
throws Exception
ldapServer - The server we want to connect toprincipalDn - The user's DNpassword - The user's password
Exception - If the connection cannot be created
public static org.apache.directory.ldap.client.api.LdapConnection getLdapConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
ldapServer - The server we want to connect to
Exception - If the connection cannot be created
public static netscape.ldap.LDAPConnection getNsdkWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer,
String principalDn,
String password)
throws Exception
ldapServer - The server we want to connect toprincipalDn - The user's DNpassword - The user's password
Exception - If the connection cannot be created
public static org.apache.directory.ldap.client.api.LdapConnection getAdminConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
throws Exception
ldapServer - The server we want to connect to
Exception - If the connection cannot be created
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||