When I go to mydomain.example:8080 there is no authorization mechanism by default. I have had look at the configuration area but cannot find anywhere to add a basic username and password
- 3I believe this page gives the answer: wiki.jenkins-ci.org/display/JENKINS/Standard+Security+SetupAlexandre Dumont– Alexandre Dumont2012-12-12 23:59:26 +00:00Commented Dec 12, 2012 at 23:59
- Related: Creating user in Jenkins via API.kenorb– kenorb2017-10-09 22:35:39 +00:00Commented Oct 9, 2017 at 22:35
- You can go to JENKINURL/configureSecurity and select Security Realm/Jenkins’ own user database. It will ask you to go back to login page where you can find create new user optionDhrumil Shah– Dhrumil Shah2020-06-16 02:01:31 +00:00Commented Jun 16, 2020 at 2:01
5 Answers
Go to Manage Jenkins > Configure Global Security and select the Enable Security checkbox.
For the basic username/password authentication, I would recommend selecting Jenkins Own User Database for the security realm and then selecting Logged in Users can do anything or a matrix based strategy (in case when you have multiple users with different permissions) for the Authorization.
9 Comments
Try deleting the .jenkins folder from your system which is located ate the below path.
C:\Users\"Your PC Name"\.jenkinsNow download a fresh and a stable version of .war file from official website of jenkins. For eg. 2.1 and follow the steps to install.
You will be able to do via this method
Comments
You need to Enable security and set the security realm on the Configure Global Security page (see: Standard Security Setup) and choose the appropriate Authorization method (Security Realm).
Depending on your selection, create the user using appropriate method. Recommended method is to select Jenkins’ own user database and tick Allow users to sign up, hit Save button, then you should be able to create user from the Jenkins interface. Otherwise if you've chosen external database, you need to create the user there (e.g. if it's Unix database, use credentials of existing Linux/Unix users or create a standard user using shell interface).
See also: Creating user in Jenkins via API
