jenkinsci / jenkinsci/active-directory-plugin

[JENKINS-46646] Active Directory Auth: Logging in with both username and email creates two separate accounts.

Open
#540 2 comments 0 reactions 0 assignees View on GitHub
component:active-directory-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
53
Forks
115
PR merge metrics
No merged PRs in 30d

Description

We configured Jenkins to use active directory authentication. It is possible to login with the ad username as well as the email adresse of the ad account. However, doing this will create two separate users. This will (almost) never be intended. As it is nice two be able to log in with both options, there should only be one jenkins account associated with each ad account.

---
Originally reported by mcnetic, imported from: Active Directory Auth: Logging in with both username and email creates two separate accounts.


  • assignee: fbelzunc
  • status: Open
  • priority: Major
  • component(s): active-directory-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 5
  • imported: 2025-12-07

Raw content of original issue

We configured Jenkins to use active directory authentication. It is possible to login with the ad username as well as the email adresse of the ad account. However, doing this will create two separate users. This will (almost) never be intended. As it is nice two be able to log in with both options, there should only be one jenkins account associated with each ad account.

Contributor guide

Open the contributing guide

Research direction

Start in the active-directory-plugin authentication and account-creation flow, then reproduce logging in with the same Active Directory account by username and email. Trace how each login identity is associated with a Jenkins user. Done means both login forms resolve to one Jenkins account, with coverage for the duplicate-account case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.