Spring Security
  1. Spring Security
  2. SEC-1461

support use UserDetailsServiceLdapAuthoritiesPopulator using security namespace

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.1.0.M1
    • Component/s: LDAP
    • Labels:
      None

      Description

      <ldap-authentication-provider user-dn-pattern="uid=

      {0}

      ,ou=people" user-service-ref="userManager"/>
      if attribute "user-service-ref" of element "ldap-authentication-provider" exists then use org.springframework.security.ldap.authentication.UserDetailsServiceLdapAuthoritiesPopulator

        Activity

        Hide
        Luke Taylor added a comment -

        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

        Show
        Luke Taylor added a comment - 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

          People

          • Assignee:
            Luke Taylor
            Reporter:
            zhouyanming
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: