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

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

问题描述

我在 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

我重新启用了安全性

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

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.

在管理用户"中添加用户,然后返回管理安全",然后禁用允许用户注册".此外,您现在可以使用基于 Matrix 的身份验证,而不必担心被 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 安全 - 无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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