org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers
Class LDAPUserVerifier
java.lang.Object
org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.PasswordVerifier
org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.UserVerifier
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
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 |
LDAPUserVerifier
public LDAPUserVerifier(ESOrgUnitProvider orgUnitProvider,
String ldapUrl,
String ldapBase,
String searchDn,
String authUser,
String authPassword)
- Default constructor.
- Parameters:
orgUnitProvider
- provides access to users and groupsldapUrl
- URL, if the URL starts with ldaps://
, SSL is used.ldapBase
- basesearchDn
- dnauthUser
- user to allow access to serverauthPassword
- password of user to allow access to server
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.