org.dspace.app.xmlui.aspect.eperson
Class LDAPAuthenticateAction

java.lang.Object
  extended by org.apache.cocoon.util.AbstractLogEnabled
      extended by org.apache.cocoon.acting.AbstractAction
          extended by org.dspace.app.xmlui.aspect.eperson.LDAPAuthenticateAction
All Implemented Interfaces:
org.apache.cocoon.acting.Action

public class LDAPAuthenticateAction
extends org.apache.cocoon.acting.AbstractAction

Attempt to authenticate the user based upon their presented credentials. This action uses the http parameters of username, ldap_password, and login_realm as credentials. If the authentication attempt is successfull then an HTTP redirect will be sent to the browser redirecting them to their original location in the system before authenticated or if none is supplied back to the DSpace homepage. The action will also return true, thus contents of the action will be excuted. If the authentication attempt fails, the action returns false. Example use:

Author:
Jay Paz

Field Summary
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
LDAPAuthenticateAction()
           
 
Method Summary
 Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String source, org.apache.avalon.framework.parameters.Parameters parameters)
          Attempt to authenticate the user.
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPAuthenticateAction

public LDAPAuthenticateAction()
Method Detail

act

public Map act(org.apache.cocoon.environment.Redirector redirector,
               org.apache.cocoon.environment.SourceResolver resolver,
               Map objectModel,
               String source,
               org.apache.avalon.framework.parameters.Parameters parameters)
        throws Exception
Attempt to authenticate the user.

Throws:
Exception


Copyright © 2012 DuraSpace. All Rights Reserved.