jenkinsci / jenkinsci/active-directory-plugin
[JENKINS-22063] Jenkins CLI login does not work
- 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
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 optionTried 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
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