Uploaded image for project: 'Spring Security'
  1. Spring Security
  2. SEC-1137

Unable to set a custom UserDetailContextMapper when using namespace configuration

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M2
    • Component/s: LDAP, Namespace
    • Labels:
      None

      Description

      There is no way to give a custom UserDetailContextMapper to the LDAPAuthenticationProvider.
      Whereas the LDAPAuthenticationProvider has a specific setter for this functionality

        Activity

        Hide
        luke Luke Taylor added a comment -

        Not a bug as it isn't intended that the namespace reproduces every feature of the underlying bean classes. Nevertheless it's something that I've been planning on adding to the LDAP namespace support at some point.

        Show
        luke Luke Taylor added a comment - Not a bug as it isn't intended that the namespace reproduces every feature of the underlying bean classes. Nevertheless it's something that I've been planning on adding to the LDAP namespace support at some point.
        Hide
        luke Luke Taylor added a comment -

        I've added the attribute user-context-mapper-ref which can be used as an alternative to user-class.

        Show
        luke Luke Taylor added a comment - I've added the attribute user-context-mapper-ref which can be used as an alternative to user-class.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: