Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62171

Can't handle class jenkins.security.plugins.ldap.FromGroupSearchLDAPGroupMembershipStrategy#authoritiesPopulator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ldap-plugin
    • Jenkins 2.222.3 on RHEL7 and openJdk 1.8
      LDAP plugin v1.24
      JCasc plugin v1.39

      During startup when JCasC loads configuration (se below) the following is logged:

      May 05, 2020 3:17:51 PM WARNING io.jenkins.plugins.casc.BaseConfigurator createAttribute
      Can't handle class jenkins.security.plugins.ldap.FromGroupSearchLDAPGroupMembershipStrategy#authoritiesPopulator: type is abstract but not Describable.

      Here's the JCasC yaml (sensitive data replaced with dummy):

      jenkins:
        securityRealm:
          ldap:
            configurations:
            - server: "ldap.acme.org"
              rootDN: "dc=utv,dc=acme,dc=org"
              userSearchBase: "ou=people"
              userSearch: "uid={0}"
              groupSearchBase: "ou=group"
              groupSearchFilter: "(& (cn={0}) (objectclass=posixGroup))"
              groupMembershipStrategy:
                fromGroupSearch:
                  filter: ""
              displayNameAttributeName: "cn"
              mailAddressAttributeName: "mail"
              inhibitInferRootDN: false
            userIdStrategy: "caseInsensitive"
            groupIdStrategy: "caseInsensitive"
            disableMailAddressResolver: false
            disableRolePrefixing: true
            cache:
              size: 20
              ttl: 300
      

      However, JCasC seems to apply the configure so not sure what the warning message really indicates.

            Unassigned Unassigned
            ahammar Anders Hammar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: