com.anwrt.anycontent.plugins.core.users
Class AuthenticatingLdapUsers

java.lang.Object
  extended bycom.anwrt.anycontent.plugins.core.users.LdapUsers
      extended bycom.anwrt.anycontent.plugins.core.users.AuthenticatingLdapUsers
All Implemented Interfaces:
AuthenticableBaseUsers, Users

public class AuthenticatingLdapUsers
extends LdapUsers
implements AuthenticableBaseUsers

Use an ldap directory for getting the list of users and also authenticating them.
This driver depends of the deploy parameters needed by the LdapUsers extension :

See Also:
LdapUsers

Nested Class Summary
 
Nested classes inherited from class com.anwrt.anycontent.plugins.core.users.LdapUsers
LdapUsers.InvalidParameterException
 
Field Summary
 
Fields inherited from class com.anwrt.anycontent.plugins.core.users.LdapUsers
_adminDN, _adminPasswd, _authMethod, _contextSearch, _emailAttr, _emailIsMandatory, _filter, _firstAttr, _lastAttr, _logger, _loginAttr, _scope, _url, _useSSL
 
Constructor Summary
AuthenticatingLdapUsers()
           
 
Method Summary
 boolean authenticate(java.lang.String login, java.lang.String password)
          Authenticate a user with a pair of login / password.
protected  java.lang.String getUserDN(java.lang.String login)
          Get the distinguished name of an user by his login.
 
Methods inherited from class com.anwrt.anycontent.plugins.core.users.LdapUsers
_cleanup, _entryToSAX, _errorInitialization, _getAttributes, _getContextEnv, _getDeployParameter, _getPatternFilter, _getSearchConstraint, _isInitialized, _toSAXInternal, configure, defaultValuesToSAX, getPrincipal, getUsers, initialize, setContextSearch, toSAX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.anwrt.anycontent.extensions.users.Users
configure, defaultValuesToSAX, getPrincipal, getUsers, initialize, toSAX
 

Constructor Detail

AuthenticatingLdapUsers

public AuthenticatingLdapUsers()
Method Detail

authenticate

public boolean authenticate(java.lang.String login,
                            java.lang.String password)
Description copied from interface: AuthenticableBaseUsers
Authenticate a user with a pair of login / password.

Specified by:
authenticate in interface AuthenticableBaseUsers
Parameters:
login - Login of the user.
password - Password to test in plain text.
Returns:
true if the user is authenticated, false otherwise.

getUserDN

protected java.lang.String getUserDN(java.lang.String login)
Get the distinguished name of an user by his login.

Parameters:
login - Login of the user.
Returns:
The dn of the user, or null if there is no match or if multiple matches.


Copyright © 2006 Anyware Technologies. All Rights Reserved.