org.aselect.authspserver.authsp.ldap
Class LDAPSSLProtocolHandler

java.lang.Object
  extended by org.aselect.authspserver.authsp.ldap.AbstractLDAPProtocolHandler
      extended by org.aselect.authspserver.authsp.ldap.LDAPSSLProtocolHandler
All Implemented Interfaces:
ILDAPProtocolHandler

public class LDAPSSLProtocolHandler
extends AbstractLDAPProtocolHandler

A SSL LDAP protocol handler.

Description:
Authenticates a user by binding to a (SSL) LDAP server using the users credentials.

Concurrency issues:
-

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.authspserver.authsp.ldap.AbstractLDAPProtocolHandler
_bFullUid, _sBaseDn, _sDriver, _sLDAPUrl, _sModule, _sPrincipalDn, _sPrincipalPwd, _sUid, _sUserDn, _systemLogger
 
Constructor Summary
LDAPSSLProtocolHandler()
          Set the module name.
 
Method Summary
protected  void doBind(java.lang.String sPassword)
          Tries to bind to the SSL LDAP server using the users credentials.
 
Methods inherited from class org.aselect.authspserver.authsp.ldap.AbstractLDAPProtocolHandler
authenticate, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSSLProtocolHandler

public LDAPSSLProtocolHandler()
Set the module name.

Method Detail

doBind

protected void doBind(java.lang.String sPassword)
               throws ASelectException
Tries to bind to the SSL LDAP server using the users credentials.

Description:
If no principal DN is known a simple binding is done, otherwise a subtree search. In this case the following steps are executed:
  1. Bind to LDAP using security principal its DN & PWD
  2. Search for user its DN relative to base DN
  3. Bind using user credentials

Concurrency issues:
-

Preconditions:
sPassword != null

Postconditions:
-

Specified by:
doBind in class AbstractLDAPProtocolHandler
Parameters:
sPassword - The user password.
Throws:
ASelectException - If user could not be authenticated.
See Also:
AbstractLDAPProtocolHandler.doBind( java.lang.String)


Copyright © 2008 SURFnet BV. All Rights Reserved.