jenkinsci / jenkinsci/active-directory-plugin

[JENKINS-34968] Domain in login is not taken into account

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

Description

If we write subdomain in the login, then this subdomain is not taken into account.

This is related to changes by this commit: https://github.com/jenkinsci/active-directory-plugin/commit/7c04f787b84cb7cd376ebb25d0b15ec649264c07

This is incorrect:

If people type in 'foo@​bar' or 'bar\foo' or just 'foo', it should be treated as 'foo@​bar' (where 'bar' represents the given domain name)

'bar' is represent a domain name which is set in the configuration, not in the login.

For example we set our Domain Name to 'bar.com'. Then we write login 'subbar\foo'. We expect to transform this to 'foo@​subbar.bar.com'. But instead a 'foo@​bar.com' is used.

---
Originally reported by serbin, imported from: Domain in login is not taken into account


  • assignee: fbelzunc
  • status: In Progress
  • priority: Minor
  • component(s): active-directory-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-07

Raw content of original issue

If we write subdomain in the login, then this subdomain is not taken into account.

This is related to changes by this commit: https://github.com/jenkinsci/active-directory-plugin/commit/7c04f787b84cb7cd376ebb25d0b15ec649264c07

This is incorrect:
If people type in 'foo@bar' or 'bar\foo' or just 'foo', it should be treated as 'foo@bar' (where 'bar' represents the given domain name)

'bar' is represent a domain name which is set in the configuration, not in the login.

For example we set our Domain Name to 'bar.com'. Then we write login 'subbar\foo'. We expect to transform this to 'foo@subbar.bar.com'. But instead a 'foo@bar.com' is used.

  • environment: Jenkins 1.654, AD plugin 1.43+

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.