java - How do I use a custom authorities populator with Spring Security and the ActiveDirectoryLdapAuthenticationProvider? -
i've connected active directory through ldap authenticate, , following in ldap.xml i've called custom authorities populator: <bean id="ldapauthenticationprovider" class="org.springframework.security.ldap.authentication.ldapauthenticationprovider"> <constructor-arg ref="ldapbindauthenticator"/> <constructor-arg ref="ldapauthoritiespopulator"/> </bean> <bean id="ldapbindauthenticator" class="org.springframework.security.ldap.authentication.bindauthenticator"> <constructor-arg ref="ldapserver"/> <property name="usersearch" ref="ldapsearch"/> </bean> <bean id="ldapsearch" class="org.springframework.security.ldap.search.filterbasedldapusersearch"> <constructor-arg value="cn=users"/> <constructor-arg value="(samaccountname={0})"/> ...