| org.esupportail.cas.server.handlers.ldap.LdapServer org.esupportail.cas.server.handlers.ldap.BindLdapServer
BindLdapServer | final public class BindLdapServer extends LdapServer (Code) | | This class implements an LDAP server class.
It can authenticate users by:
- searching into the LDAP directory to guess the user's
DN thanks to its username;
- binding to the same LDAP directory with the DN found
previously and the password provided by the user.
It is used by BindLdapHandler.
author: Pascal Aubry author: Jean-Baptiste Daniel |
Method Summary | |
public int | authenticate(String username, String password) Try to authenticate a user (by searching and then binding to
the LDAP directory). |
BindLdapServer | public BindLdapServer(Boolean handlerDebug, RedundantHandler handler, Element serverElement) throws Exception(Code) | | Constructor.
Parameters: handlerDebug - debugging mode of the handler Parameters: handler - the handler the server will be used by Parameters: serverElement - the XML element that declares the server throws: Exception - Exception |
authenticate | public int authenticate(String username, String password)(Code) | | Try to authenticate a user (by searching and then binding to
the LDAP directory).
Parameters: username - the user's name Parameters: password - the user's password Server.AUTHENTICATE_SUCCESS, Server.AUTHENTICATE_NOAUTHor Server.AUTHENTICATE_FAILURE. |
|
|