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

Unprocessed Continuation in DefaultLdapAuthoritiesPopulator.getGroupMembershipRoles

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M1
    • Component/s: LDAP
    • Labels:
      None
    • Environment:
      Active Directory, not sure of Version.

      Description

      Caused by: org.springframework.ldap.PartialResultException: Unprocessed Continuation Reference(s); nested exception is javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name ''
      ...
      at org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleAttributeValues(SpringSecurityLdapTemplate.java:170)
      at org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator.getGroupMembershipRoles(DefaultLdapAuthoritiesPopulator.java:206)
      at org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator.getGrantedAuthorities(DefaultLdapAuthoritiesPopulator.java:179)
      at org.springframework.security.providers.ldap.LdapAuthenticationProvider.loadUserAuthorities(LdapAuthenticationProvider.java:243)
      at org.springframework.security.providers.ldap.LdapAuthenticationProvider.authenticate(LdapAuthenticationProvider.java:231)
      ... 22 more

      My origional plan to fix this was to extend and set
      ldapTemplate.setIgnorePartialResultException(true) in the constructor, but ldapTemplate is private.

      Suggest opening this up as Protected and making trivial extension.

        Activity

        Hide
        luke Luke Taylor added a comment -

        I've added the property to DefaultLdapAuthoritiesPopulator so you can set it directly on the bean.

        Show
        luke Luke Taylor added a comment - I've added the property to DefaultLdapAuthoritiesPopulator so you can set it directly on the bean.

          People

          • Assignee:
            luke Luke Taylor
            Reporter:
            johngreen John E Green
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: