title: how to implement customized LdapAuthoritiesPopulator
body: <p>This is some part of my spring-security.xml.
  My requirement is - i want to use embedded LDAP server only and want to use LdapAuthoritiesPopulator with itt</p>
  
  <pre><code>&lt;security:authentication-manager&gt;
              &lt;security:ldap-authentication-provider  
                      user-search-filter="(uid={0})" 
                      user-search-base="ou=users"
                      group-search-filter="(uniqueMember={0})"
                      group-search-base="ou=groups"
                      group-role-attribute="cn"
                      role-prefix="ROLE_"&gt;
              &lt;/security:ldap-authentication-provider&gt;
      &lt;/security:authentication-manager&gt;
  
      &lt;!-- Use an embedded LDAP server. We need to declare the location of the LDIF file
              We also need to customize the root attribute default is --&gt;
      &lt;security:ldap-server ldif="classpath:mojo.ldif" root="dc=springframework,dc=org"/&gt;
  </code></pre>
  
  <p>I want to use my custom LdapAuthoritiesPopulator. 
  How to use it with embedded ldap server.
  I am new to spring as of now.</p>