SEC-1461: support use UserDetailsServiceLdapAuthoritiesPopulator using security namespace #1701

Closed
spring-issuemaster opened this Issue Apr 15, 2010 · 1 comment

1 participant

@spring-issuemaster

zhouyanming (Migrated from SEC-1461) said:


if attribute "user-service-ref" of element "ldap-authentication-provider" exists then use org.springframework.security.ldap.authentication.UserDetailsServiceLdapAuthoritiesPopulator

@spring-issuemaster

Luke Taylor said:

I don't think it's a good idea to use this attribute with the LDAP provider. The end result is quite limited - if anything it would be better to support a reference to an LdapAuthoritiesPopulator directly. However, it will complicate the use of the element and require further documentation on which attributes need to be used together and which are mutually exclusive. If you want to inject an LdapAuthoritiesPopulator but still continue using the namespace form, you can do this using a BeanPostProcessor. See http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#beans-factory-extension-bpp

@spring-issuemaster spring-issuemaster added this to the 3.1.0.M1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment