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

LDAPGroupMembershipStrategy set incorrectly

    Details

    • Similar Issues:

      Description

      I am setting LDAP in an init.groovy script with

      LDAPGroupMembershipStrategy groupMembershipStrategy = (LDAPGroupMembershipStrategy) new FromUserRecordLDAPGroupMembershipStrategy("memberOf");

      def ldapRealm = new LDAPSecurityRealm(
      server = server,
      rootDN = rootDN,
      userSearchBase = userSearchBase,
      userSearch = userSearch,
      groupSearchBase = groupSearchBase,
      groupSearchFilter = groupSearchFilter,
      groupMembershipFilter = groupMembershipFilter,
      managerDN = managerDN,
      managerPassword = managerPassword,
      inhibitInferRootDN = false,
      disableMailAddressResolver = false,
      cache = cache,
      environmentProperties = environmentProperties,
      displayNameAttributeName = displayNameAttributeName,
      mailAddressAttributeName = mailAddressAttributeName
      );
      cijenkins.setSecurityRealm(ldapRealm)
      cijenkins.save()

       

      However, the config.xml that is created has

      <groupMembershipStrategy class="jenkins.security.plugins.ldap.FromGroupSearchLDAPGroupMembershipStrategy">
      <filter>memberOf</filter>
      </groupMembershipStrategy>

      and I am unable to login unless I manually edit the config.xml to the correct value.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rmyung Roger Myung
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: