public class BindAuthenticator extends AbstractLdapAuthenticator
AbstractLdapAuthenticator
messages
Constructor and Description |
---|
BindAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
Create an initialized instance using the
BaseLdapPathContextSource provided. |
Modifier and Type | Method and Description |
---|---|
org.springframework.ldap.core.DirContextOperations |
authenticate(Authentication authentication)
Authenticates as a user and obtains additional user information from the directory.
|
protected void |
handleBindException(String userDn,
String username,
Throwable cause)
Allows subclasses to inspect the exception thrown by an attempt to bind with a particular DN.
|
afterPropertiesSet, getContextSource, getUserAttributes, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDnPatterns, setUserSearch
public BindAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
BaseLdapPathContextSource
provided.contextSource
- the BaseLdapPathContextSource instance against which bind operations will be
performed.public org.springframework.ldap.core.DirContextOperations authenticate(Authentication authentication)
LdapAuthenticator
Copyright © 2019. All rights reserved.