Hi All,

I am using spring xml namspace to define an LDAP server and an LDAP authentication provider:
Code:
 <ldap-server id="ldapServer"
               url="ldap://localhost:389/"
               manager-dn="....."
               manager-password="...."/>
,
Code:
<ldap-authentication-provider server-ref="ldapServer"/>
I have defined a custom UserDetailsService to load user authorities from DB

Code:
<beans:bean id="ldapAuthoritiesPopulator"
              class="org.springframework.security.ldap.authentication.UserDetailsServiceLdapAuthoritiesPopulator">
    <beans:constructor-arg index="0" ref="defaultUserDetailsService"/>
</beans:bean>
Is there a way to set the "ldapAuthoritiesPopulator" bean in the "ldap-authentication-provider" using XMl namespace?

Thanks