Unable to login to Jenkins even if I enter valid credentials.

+1 vote
Error: Invalid login information. Please try again.
Jul 2, 2018 in Jenkins by Tyrion anex
• 8,280 points
1,407 views

5 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote
Best answer

Disable security by editing these two classes within the config.xml file in the following way:

authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
  <securityRealm class="hudson.security.SecurityRealm$None"/>
answered Apr 26 by Vedant

selected Apr 26 by Kalgi
+1 vote

This error occurs often, even when the credentials we enter are correct. A quick fix is to reconfigure security options in the config.xml file. The Jenkins config.xml file holds all the information related to the security realm and the authorization strategy. This file is located in the /var/lib/jenkins directory. One thing you must know is that, by disabling the security any anonymous user can access your Jenkins.

answered Jul 3, 2018 by Sophie may
• 9,050 points
+1 vote

By default, the security is enabled and if for some reason you’re not able to login to Jenkins dispite providing valid credentials then you can disable the security and authorization strategy. You can do this by editing the config.xml file and changing the following two classes

  • Security realm
  • Authorization strategy
answered Apr 26 by Pooja
0 votes

You can change the password by manually editing the configuration file for your user. (/jenkins/users/username/config.xml) and update the contents of passwordHash:

<passwordHash>#jbcrypt:$2a$10$razd3L1aXndFfBNHO95aj.IVrFydsxkcQCcLmujmFQzll3hcUrY7S</passwordHash>
answered Apr 26 by Barbara
0 votes
Weird but uninstalling and reinstalling worked for me! It's a lot of work and not the best thing to do.
answered Apr 26 by Peter

Related Questions In Jenkins

0 votes
1 answer

Unable to access Jenkins. I newly installed Jenkins but for some reason I cannot access it.

Try changing the port, Change JENKINS_AJP_PORT="xyz" to JENKINS_AJP_PORT="abc" If changing the ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 9,050 points
86 views
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,050 points
92 views
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,520 points
92 views
0 votes
1 answer

Unable to integrate jenkins with tfs: EndpointNotFoundException

Check if you can connect to tfs ...READ MORE

answered May 28, 2018 in Jenkins by DareDev
• 6,520 points

edited May 28, 2018 by DareDev 89 views
+13 votes
2 answers
0 votes
1 answer
+2 votes
6 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.