|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.AbstractLdap<AuthenticatorConfig>
edu.vt.middleware.ldap.auth.SearchDnResolver
public class SearchDnResolver
SearchDnResolver looks up a user's DN using an LDAP search.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.ldap.AbstractLdap |
|---|
BINDING_COPY_RESULT_HANDLER, config, connectionHandler, COPY_RESULT_HANDLER, logger, NCP_COPY_RESULT_HANDLER, SR_COPY_RESULT_HANDLER |
| Constructor Summary | |
|---|---|
SearchDnResolver()
Default constructor. |
|
SearchDnResolver(AuthenticatorConfig authConfig)
This will create a new SearchDnResolver with the supplied
AuthenticatorConfig. |
|
| Method Summary | |
|---|---|
void |
close()
This will close the connection to the LDAP. |
AuthenticatorConfig |
getAuthenticatorConfig()
This returns the AuthenticatorConfig of the
Authenticator. |
String |
resolve(String user)
This will attempt to find the dn for the supplied user. |
void |
setAuthenticatorConfig(AuthenticatorConfig authConfig)
This will set the config parameters of this Authenticator. |
| Methods inherited from class edu.vt.middleware.ldap.AbstractLdap |
|---|
compare, connect, create, delete, finalize, getAttributes, getContext, getSchema, list, listBindings, modifyAttributes, modifyAttributes, operationRetry, pagedSearch, reconnect, rename, search, searchAttributes, setLdapConfig, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SearchDnResolver()
public SearchDnResolver(AuthenticatorConfig authConfig)
SearchDnResolver with the supplied
AuthenticatorConfig.
authConfig - AuthenticatorConfig| Method Detail |
|---|
public void setAuthenticatorConfig(AuthenticatorConfig authConfig)
Authenticator.
setAuthenticatorConfig in interface DnResolverauthConfig - AuthenticatorConfigpublic AuthenticatorConfig getAuthenticatorConfig()
AuthenticatorConfig of the
Authenticator.
getAuthenticatorConfig in interface DnResolverAuthenticatorConfig
public String resolve(String user)
throws NamingException
AuthenticatorConfig.getUserFilter() or AuthenticatorConfig.getUserField() is used to look up the dn. If a filter
is used, the user is provided as the {0} variable filter argument. If a
field is used, the filter is built by ORing the fields together. If more
than one entry matches the search, the result is controlled by AuthenticatorConfig.setAllowMultipleDns(boolean).
resolve in interface DnResolveruser - String to find dn for
String - user's dn
NamingException - if the LDAP search failspublic void close()
close in interface DnResolverclose in interface BaseLdapclose in class AbstractLdap<AuthenticatorConfig>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||