-
Bug
-
Resolution: Unresolved
-
Minor
-
None
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.
In order to set proper expectation, I have unassigned Kohsuke from this tickets.
Currently there is no Default assignee in the LDAP plugin, any contributions will be appreciated.