jenkinsci / jenkinsci/ldap-plugin

[JENKINS-40541] Ldap group membership doenst work

Open
#477 3 comments 0 reactions 0 assignees View on GitHub
component:ldap-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
51
Forks
106
PR merge metrics
No merged PRs in 30d

Description

I'm having troubles configuring jenkins with ldap groupmembership filter, is like it isn't filter.

I can see that the groups is filter correctly:

Group search filter: (objectClass=mycompPermissions)(tValue=


{0}) -> this filter works , I can see the groups in the section "assign roles"



but when a user is logged in, jenkins is not able to detect what group it belong, this is my filter:



(objectClass=mycompPermissions)(equivalentToMe=cn={0}

,ou=people,ou=users,o=Company)

if I replace cn=


{0}

, with a specific user , it doesn't work neither. I tested the filter with ApacheDirectoryStudio and it worked there. if I go to jenkinsurl/whoAmI/

I can see:

Name: user1 IsAuthenticated?: true Authorities:

"authenticated"

So:

I'm able to login with jenkins with my ldapuser

Jenkins Is able to list the ldap groups

the problem is:

Jenkins is not able to detect what group belong each user

---
Originally reported by estev82, imported from: Ldap group membership doenst work


  • status: Open
  • priority: Blocker
  • component(s): ldap-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 2025-12-09

Raw content of original issue

I'm having troubles configuring jenkins with ldap groupmembership filter, is like it isn't filter.

I can see that the groups is filter correctly:

Group search filter: (objectClass=mycompPermissions)(tValue=


{0}) -> this filter works , I can see the groups in the section "assign roles"

but when a user is logged in, jenkins is not able to detect what group it belong, this is my filter:

(objectClass=mycompPermissions)(equivalentToMe=cn={0}

,ou=people,ou=users,o=Company)

if I replace cn=


{0}

, with a specific user , it doesn't work neither. I tested the filter with ApacheDirectoryStudio and it worked there. if I go to jenkinsurl/whoAmI/

I can see:

Name: user1 IsAuthenticated?: true Authorities:
"authenticated"

So:

I'm able to login with jenkins with my ldapuser
Jenkins Is able to list the ldap groups
the problem is:

Jenkins is not able to detect what group belong each user

Contributor guide

Open the contributing guide

Research direction

Start with the ldap-plugin configuration and the /whoAmI/ endpoint, reproducing the supplied group search and membership filters while comparing the groups shown in “assign roles” with the user’s authorities. Trace the group-membership handling to determine why the authenticated user receives only “authenticated”; done means the expected LDAP group appears in the user’s authorities.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.