public class LDAPUserVerifier extends UserVerifier
| Constructor and Description |
|---|
LDAPUserVerifier(ESOrgUnitProvider orgUnitProvider,
String ldapUrl,
String ldapBase,
String searchDn,
String authUser,
String authPassword)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
verifyUserpublic LDAPUserVerifier(ESOrgUnitProvider orgUnitProvider, String ldapUrl, String ldapBase, String searchDn, String authUser, String authPassword)
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 serverpublic boolean verifyPassword(String username, String password) throws AccessControlException
ESUserVerifier#verifyUser(String, String, ESClientVersionInfo) in order to gain a session id.username - the user name as entered by the client; may differ from the user name of the resolvedUserpassword - the password as entered by the clienttrue if authentication was successful, false if notAccessControlException - if an exception occurs during the verification processpublic void init(ESOrgUnitProvider orgUnitProvider)
orgUnitProvider - the ESOrgUnitProvider that can be used to obtain organizational unitsESUserVerifier.init(org.eclipse.emf.emfstore.server.model.ESOrgUnitProvider)Copyright © 2017. All rights reserved.