jenkinsci / jenkinsci/active-directory-plugin

[JENKINS-22063] Jenkins CLI login does not work

Open
#413 0 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

java -jar jenkins-cli.jar -s http://jenkins-server:8080 login --username name

returns the following error:

"--username" is not a valid option

Tried giving "-username", "-u", etc. still the same issue.

Our server uses LDAP for authentication. I had read number of related issues in jenkins-ci but none of them specified a concrete solution.

What am i missing here?

---
Originally reported by ahmedu, imported from: Jenkins CLI login does not work


  • status: Open
  • priority: Major
  • component(s): active-directory-plugin
  • label(s): jenkins
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

java -jar jenkins-cli.jar -s http://jenkins-server:8080 login --username name

returns the following error:
"--username" is not a valid option

Tried giving "-username", "-u", etc. still the same issue.
Our server uses LDAP for authentication. I had read number of related issues in jenkins-ci but none of them specified a concrete solution.

What am i missing here?

environment

```
OS: Linux - Red Hat 4

Jenkins version: 1.532.2
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `java -jar jenkins-cli.jar ... login --username name` command against a Jenkins server using LDAP and confirm the option error. Then trace the active-directory-plugin's authentication and CLI entry points; done means the documented login flow accepts the intended credentials or reports the correct supported usage, with a regression test for the observed failure.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.