public class LdapAuthenticator extends Object
Constructor and Description |
---|
LdapAuthenticator(LdapConfiguration ldapConfig)
Creates a new authenticator.
|
Modifier and Type | Method and Description |
---|---|
ExternalUserVO |
authenticate(String username,
String password,
LdapUserAttribute usernameAttribute)
Tries to authenticate the user.
|
public LdapAuthenticator(LdapConfiguration ldapConfig)
ldapConfig
- the configuration of the authenticatorpublic ExternalUserVO authenticate(String username, String password, LdapUserAttribute usernameAttribute) throws LdapAttributeMappingException
AuthenticationException
is thrownusername
- the user name of the user to authenticate.password
- the passwordusernameAttribute
- determines whether the username parameter refers to an email address or aliasLdapAttributeMappingException
- in case the result returned from can not be mapped to the the VOCopyright © 2019 Communote team. All rights reserved.