|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.esupportail.cas.server.util.log.Debug
org.esupportail.cas.server.util.Server
org.esupportail.cas.server.handlers.ldap.LdapServer
public abstract class LdapServer
This abstract class implements an LDAP server class, inherited by BindLdapServer and FastBindLdapServer.
| Field Summary | |
|---|---|
private static java.lang.String[] |
INPUT_TOKENS
A String array used to store input tokens (to be replaced). |
private boolean |
secured
true for a secure access to the LDAP directory, false otherwise. |
private boolean |
skipReferrals
skip Referrals, useful when using Active Directory |
private java.lang.String |
url
the URL of the LDAP directory. |
| Fields inherited from class org.esupportail.cas.server.util.Server |
|---|
AUTHENTICATE_FAILURE, AUTHENTICATE_NOAUTH, AUTHENTICATE_SUCCESS, CONNECT_FAILURE, CONNECT_NOAUTH, CONNECT_SUCCESS |
| Constructor Summary | |
|---|---|
LdapServer(java.lang.Boolean handlerDebug,
RedundantHandler handler,
org.dom4j.Element serverElement)
Constructor. |
|
| Method Summary | |
|---|---|
protected javax.naming.directory.DirContext |
connect(java.lang.String bindDn,
java.lang.String bindPassword)
Connect to the LDAP server using specified username and password. |
protected boolean |
connectAndClose(java.lang.String bindDn,
java.lang.String bindPassword)
Connect to the LDAP server using specified username and password and immediatly close the connection. |
protected java.lang.String |
replaceTokens(java.lang.String filter,
java.lang.String username)
Take a filter (from CASGenericHandler configuration) and a username, and replace tokens in the filter by their equivalents in the username. |
| Methods inherited from class org.esupportail.cas.server.util.Server |
|---|
authenticate, getConnectError, getHandler, getServerSubElementContent, setConnectError |
| Methods inherited from class org.esupportail.cas.server.util.log.Debug |
|---|
checkClass, elementDebugValue, isDebug, setDebug, trace, trace, traceBegin, traceEnd, traceEnd, traceEnd, traceThrow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String[] INPUT_TOKENS
private boolean secured
private boolean skipReferrals
private java.lang.String url
| Constructor Detail |
|---|
public LdapServer(java.lang.Boolean handlerDebug,
RedundantHandler handler,
org.dom4j.Element serverElement)
throws java.lang.Exception
handlerDebug - debugging mode of the handlerhandler - the handler the server will be used byserverElement - the XML element that declares the server
java.lang.Exception - Exception| Method Detail |
|---|
protected final javax.naming.directory.DirContext connect(java.lang.String bindDn,
java.lang.String bindPassword)
bindDn - the DN to use for the connectionbindPassword - the associated password
protected final boolean connectAndClose(java.lang.String bindDn,
java.lang.String bindPassword)
bindDn - the DN to use for the connectionbindPassword - the associated password
protected final java.lang.String replaceTokens(java.lang.String filter,
java.lang.String username)
username - a username (such as test@domain.com)filter - a filter string containing tokens to be replaced
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||