public class ServerIntegrationUtils extends org.apache.directory.server.core.integ.IntegrationUtils
| Constructor and Description |
|---|
ServerIntegrationUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.api.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.
|
apply, closeConnections, disableSchema, doDelete, enableSchema, getAdminConnection, getAdminNetworkConnection, getAnonymousNetworkConnection, getAnonymousNetworkConnection, getConnectionAs, getConnectionAs, getContext, getCoreSession, getNetworkConnectionAs, getNetworkConnectionAs, getRootContext, getSchemaContext, getSystemContext, getUserAddLdif, getUserAddLdif, injectEntries, isDisabled, isEnabled, isLoadedpublic ServerIntegrationUtils()
public static LdapContext getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer) throws NamingException
ldapServer - the LDAP server to get the connection toNamingException - if there are problems creating the contextpublic static LdapContext getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer, String principalDn, String password) throws NamingException
ldapServer - the LDAP server to get the connection toprincipalDn - The user to use for authenticationpassword - The user's passwordNamingException - if there are problems creating the contextpublic static LdapContext getWiredContext(org.apache.directory.server.ldap.LdapServer ldapServer, org.apache.directory.api.ldap.model.message.Control[] controls) throws NamingException
ldapServer - the LDAP server to get the connection tocontrols - The controls to useNamingException - if there are problems creating the contextpublic static LdapContext getWiredContextThrowOnRefferal(org.apache.directory.server.ldap.LdapServer ldapServer) throws NamingException
ldapServer - the LDAP server to get the connection toNamingException - if there are problems creating the contextpublic static LdapContext getWiredContextRefferalIgnore(org.apache.directory.server.ldap.LdapServer ldapServer) throws NamingException
ldapServer - the LDAP server to get the connection toNamingException - if there are problems creating the contextpublic static LdapContext getWiredContextFollowOnRefferal(org.apache.directory.server.ldap.LdapServer ldapServer) throws NamingException
ldapServer - the LDAP server to get the connection toNamingException - if there are problems creating the contextpublic static org.apache.directory.ldap.client.api.LdapConnection getWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic static netscape.ldap.LDAPConnection getNsdkWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer) throws netscape.ldap.LDAPException
netscape.ldap.LDAPExceptionpublic static org.apache.directory.ldap.client.api.LdapConnection getWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer, String principalDn, String password) throws org.apache.directory.api.ldap.model.exception.LdapException
ldapServer - The server we want to connect toprincipalDn - The user's DNpassword - The user's passwordorg.apache.directory.api.ldap.model.exception.LdapException - If the connection cannot be createdpublic static org.apache.directory.ldap.client.api.LdapConnection getLdapConnection(org.apache.directory.server.ldap.LdapServer ldapServer)
ldapServer - The server we want to connect toorg.apache.directory.api.ldap.model.exception.LdapException - If the connection cannot be createdpublic static netscape.ldap.LDAPConnection getNsdkWiredConnection(org.apache.directory.server.ldap.LdapServer ldapServer, String principalDn, String password) throws netscape.ldap.LDAPException
ldapServer - The server we want to connect toprincipalDn - The user's DNpassword - The user's passwordnetscape.ldap.LDAPException - If the connection cannot be createdpublic static org.apache.directory.ldap.client.api.LdapConnection getAdminConnection(org.apache.directory.server.ldap.LdapServer ldapServer) throws org.apache.directory.api.ldap.model.exception.LdapException
ldapServer - The server we want to connect toorg.apache.directory.api.ldap.model.exception.LdapException - If the connection cannot be createdCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.