edu.yale.its.tp.cas.auth.provider
Class LdapHandler

java.lang.Object
  |
  +--edu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandler
        |
        +--edu.yale.its.tp.cas.auth.provider.LdapHandler
All Implemented Interfaces:
AuthHandler, PasswordHandler

public class LdapHandler
extends WatchfulPasswordHandler

Authenticate by binding against an LDAP directory. Some code borrowed from uPortal SimpleLdapSecurityContext and LdapServices


Constructor Summary
LdapHandler()
           
 
Method Summary
 boolean authenticate(javax.servlet.ServletRequest request, java.lang.String username, java.lang.String password)
          Returns true if the given request comes from an IP address whose allotment of failed login attemps is within reasonable bounds; false otherwise.
 
Methods inherited from class edu.yale.its.tp.cas.auth.provider.WatchfulPasswordHandler
registerFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapHandler

public LdapHandler()
Method Detail

authenticate

public boolean authenticate(javax.servlet.ServletRequest request,
                            java.lang.String username,
                            java.lang.String password)
Description copied from class: WatchfulPasswordHandler
Returns true if the given request comes from an IP address whose allotment of failed login attemps is within reasonable bounds; false otherwise. Note: We don't actually validate the user and password; this functionality must be implemented by subclasses.

Specified by:
authenticate in interface PasswordHandler
Overrides:
authenticate in class WatchfulPasswordHandler