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.
DirContextOperations searchForUser(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.