public interface LdapUserSearch
May be optionally used to configure the LDAP authentication implementation when a more sophisticated approach is required than just using a simple username->DN mapping.
Modifier and Type | Method and Description |
---|---|
org.springframework.ldap.core.DirContextOperations |
searchForUser(java.lang.String username)
Locates a single user in the directory and returns the LDAP information for that
user.
|
org.springframework.ldap.core.DirContextOperations searchForUser(java.lang.String username) throws UsernameNotFoundException
username
- the login name supplied to the authentication service.UsernameNotFoundException
- if no user with the supplied name could be
located by the search.