public interface LdapConnectionManager
| Modifier and Type | Method and Description |
|---|---|
LdapConnectionManager |
findForReferral(URI referralUri)
Identify which
LdapConnectionManager can establish connections needed for a referral. |
DirContext |
getConnection()
Obtain a connection to LDAP using the configuration defined.
|
void |
verifyIdentity(String bindDn,
String bindCredential)
Verify that the specified bindDn and bindCredential can be used to establish a connection to LDAP.
|
DirContext getConnection() throws NamingException
DirContext for access to the LDAP server.NamingException - If an error occurs connecting to LDAP.void verifyIdentity(String bindDn, String bindCredential) throws NamingException
NamingException is thrown then the establishment of the connection was successful.bindDn - - The bind distinguished name for the connection.bindCredential - - The bind credential for the connection.NamingException - - If there is any error establishing the connection.LdapConnectionManager findForReferral(URI referralUri)
LdapConnectionManager can establish connections needed for a referral.referralUri - - The URI of the referral.LdapConnectionManager that can handle the referral or null if none is found.Copyright © 2018 JBoss by Red Hat. All rights reserved.