org.apache.ldap.server.authn
Class SimpleAuthenticator

java.lang.Object
  extended byorg.apache.ldap.server.authn.AbstractAuthenticator
      extended byorg.apache.ldap.server.authn.SimpleAuthenticator
All Implemented Interfaces:
Authenticator

public class SimpleAuthenticator
extends AbstractAuthenticator

A simple Authenticator that authenticates clear text passwords contained within the userPassword attribute in DIT.

Author:
Apache Directory Project

Constructor Summary
SimpleAuthenticator()
          Creates a new instance.
 
Method Summary
 LdapPrincipal authenticate(ServerContext ctx)
          Looks up userPassword attribute of the entry whose name is the value of Context.SECURITY_PRINCIPAL environment variable, and authenticates a user with the plain-text password.
 
Methods inherited from class org.apache.ldap.server.authn.AbstractAuthenticator
createLdapPrincipal, destroy, doDestroy, doInit, getAuthenticatorType, getConfiguration, getFactoryConfiguration, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuthenticator

public SimpleAuthenticator()
Creates a new instance.

Method Detail

authenticate

public LdapPrincipal authenticate(ServerContext ctx)
                           throws javax.naming.NamingException
Looks up userPassword attribute of the entry whose name is the value of Context.SECURITY_PRINCIPAL environment variable, and authenticates a user with the plain-text password.

Specified by:
authenticate in interface Authenticator
Specified by:
authenticate in class AbstractAuthenticator
Throws:
javax.naming.NamingException