anchor.diff:  ----
   
   <bean id="adAuthenticationProvider"
  -class="org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider">
  +        class="org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider">
   	<constructor-arg value="mydomain.com" />
   	<constructor-arg value="ldap://adserver.mydomain.com/" />
   </bean>
  -}
   ----
   
   Note that there is no need to specify a separate `ContextSource` in order to define the server location - the bean is completely self-contained.
  
positive.code: ----
  public interface UserDetailsContextMapper {
  
  UserDetails mapUserFromContext(DirContextOperations ctx, String username,
  		Collection<GrantedAuthority> authorities);
  
  void mapUserToContext(UserDetails user, DirContextAdapter ctx);
  }
  ----
  
  
negative.code: [source,xml]
  ----
  <ldap-authentication-provider user-search-filter="(uid={0})"
  	    user-search-base="ou=people"/>
  ----
  
  If used with the server definition above, this would perform a search under the DN `ou=people,dc=springframework,dc=org` using the value of the `user-search-filter` attribute as a filter.
  