org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers
Class LDAPUserVerifier

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.PasswordVerifier
      extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.UserVerifier
          extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.LDAPUserVerifier
All Implemented Interfaces:
ESUserVerifier

public class LDAPUserVerifier
extends UserVerifier

Verifies user name/password using LDAP.

Author:
Wesendonk

Constructor Summary
LDAPUserVerifier(ESOrgUnitProvider orgUnitProvider, String ldapUrl, String ldapBase, String searchDn, String authUser, String authPassword)
          Default constructor.
 
Method Summary
 void init(ESOrgUnitProvider orgUnitProvider)
          Initializes this verifier.
 boolean verifyPassword(String username, String password)
          This method must be implemented by subclasses in order to verify a pair of username and password.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.UserVerifier
verifyUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPUserVerifier

public LDAPUserVerifier(ESOrgUnitProvider orgUnitProvider,
                        String ldapUrl,
                        String ldapBase,
                        String searchDn,
                        String authUser,
                        String authPassword)
Default constructor.

Parameters:
orgUnitProvider - provides access to users and groups
ldapUrl - URL, if the URL starts with ldaps://, SSL is used.
ldapBase - base
searchDn - dn
authUser - user to allow access to server
authPassword - password of user to allow access to server
Method Detail

verifyPassword

public boolean verifyPassword(String username,
                              String password)
                       throws AccessControlException
This method must be implemented by subclasses in order to verify a pair of username and password. When using authentication you should use ESUserVerifier#verifyUser(String, String, ESClientVersionInfo) in order to gain a session id.

Parameters:
username - the user name as entered by the client; may differ from the user name of the resolvedUser
password - the password as entered by the client
Returns:
boolean true if authentication was successful, false if not
Throws:
AccessControlException - if an exception occurs during the verification process

init

public void init(ESOrgUnitProvider orgUnitProvider)
Initializes this verifier.

Parameters:
orgUnitProvider - the ESOrgUnitProvider that can be used to obtain organizational units
See Also:
ESUserVerifier.init(org.eclipse.emf.emfstore.server.model.ESOrgUnitProvider)


Copyright © 2016. All Rights Reserved.