org.springframework.security.ldap.search
Interface LdapUserSearch

All Known Implementing Classes:
FilterBasedLdapUserSearch

public interface LdapUserSearch

Obtains a user's information from the LDAP directory given a login name.

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.

Version:
$Id: LdapUserSearch.java 3640 2009-05-04 14:24:54Z ltaylor $
Author:
Luke Taylor

Method Summary
 org.springframework.ldap.core.DirContextOperations searchForUser(String username)
          Locates a single user in the directory and returns the LDAP information for that user.
 

Method Detail

searchForUser

org.springframework.ldap.core.DirContextOperations searchForUser(String username)
                                                                 throws UsernameNotFoundException
Locates a single user in the directory and returns the LDAP information for that user.

Parameters:
username - the login name supplied to the authentication service.
Returns:
a DirContextOperations object containing the user's full DN and requested attributes.
Throws:
UsernameNotFoundException - if no user with the supplied name could be located by the search.


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.