Jenkins Security-无法登录 [英] Jenkins Security - Unable to login

查看:70
本文介绍了Jenkins Security-无法登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Jenkins上启用了安全性,并将自己添加为唯一用户.单击保存"后,它带我回到登录屏幕,而无需要求我创建密码.现在,我无法使用我刚添加的用户名登录.可以使用默认密码吗?还是必须再次在config.xml文件中禁用安全性?

I enabled security on Jenkins and added myself as the only user. After clicking on "Save" it brought me back to the log-on screen without asking me to create a password. Now I can not log-in with the username I just added. Is there a default password that I can use or do I have to disable security again in the config.xml file?

感谢您的帮助:)

推荐答案

我解决了.这就是我所做的.

I solved it. Here's what I did.

  1. 我在JENKINS_HOME/config.xml

重新启动Tomcat

Restarted Tomcat

我重新启用了安全性

选择了Jenkin自己的数据库,并选中了允许用户注册" (还要确保在授权"中选中任何人都可以做任何事情".)

Selected Jenkin's own database and also checked Allow users to Sign-up (Also make sure that in Authorization, "Anyone can do anything" is ticked.)

保存".单击保存"后,它将带您到初始页面,然后在右上角有一个注册"链接.

"Save". After clicking Save, it will bring you to the initial page, then on the top-right corner there is a "Sign up" link.

单击注册",输入您的用户名和密码,然后登录.现在,您是唯一的注册用户.但实际上它还有其他作用.在创建第一个帐户之前,管理Jenkins"菜单中没有管理用户".我看到了有关将用户添加到Jenkins的指南,它说在管理Jenkins"菜单下应该有一个管理用户"链接,但没有任何链接.但是,在创建第一个帐户(使用注册")之后,现在可以在此处找到它.

Click on "Sign up", enter your username and password then log-in. Right now you are the only registered user. But it actually did something else. Prior to the creation of your first account, there is no "Manage users" in the "Manage Jenkins" menu. I saw this guide on adding users to Jenkins and it says that there should be a "Manage users" link under the "Manage Jenkins" menu but there is none. But after you have created your first account (using Sign up), you can now find it there.

在管理用户"上添加用户,然后返回到管理安全性",然后禁用允许用户注册".另外,您现在可以使用基于矩阵的身份验证,而不必担心被Jenkins锁定.

Add users on the "Manage users" and then go back to "Manage security" then disable "Allow users to sign up". Also, you can now use Matrix based authentication without having to worry about getting locked out of Jenkins.

我希望有人可以找到这个有用的东西.

I hope someone can find this useful.

干杯.

这篇关于Jenkins Security-无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆