org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers
Class LDAPVerifier
java.lang.Object
org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.AbstractAuthenticationControl
org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.LDAPVerifier
- All Implemented Interfaces:
- AuthenticationControl
public class LDAPVerifier
- extends AbstractAuthenticationControl
Verifies username/password using LDAP.
- Author:
- Wesendonk
Method Summary |
boolean |
verifyPassword(ACUser resolvedUser,
String username,
String password)
This method must be implemented by subclasses in order to verify a pair of username and password. |
LDAPVerifier
public LDAPVerifier(String ldapUrl,
String ldapBase,
String searchDn,
String authUser,
String authPassword)
- Default constructor.
- Parameters:
ldapUrl
- url, if 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(ACUser resolvedUser,
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
AuthenticationControl.logIn(ACUser, String, String, ClientVersionInfo)
in order to gain a
session id.
- Parameters:
resolvedUser
- the user instance that has been resolved by the userusername
- the username 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- See Also:
AbstractAuthenticationControl.verifyPassword(org.eclipse.emf.emfstore.internal.server.model.accesscontrol.ACUser,
java.lang.String, java.lang.String)
Copyright © 2015. All Rights Reserved.