如何为Jenkins添加用户名和密码? [英] How can I add a username and password to Jenkins?

查看:422
本文介绍了如何为Jenkins添加用户名和密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我转到mydomain.com:8080时,默认情况下没有授权机制.我看过配置区域,但是找不到任何地方来添加基本的用户名和密码

When I go to mydomain.com: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

推荐答案

转到管理Jenkins>配置全局安全性,然后选择启用安全性复选框.

Go to Manage Jenkins > Configure Global Security and select the Enable Security checkbox.

对于基本的用户名/密码身份验证,我建议选择 Jenkins自己的用户数据库作为安全领域,然后选择登录的用户可以做任何事情" 或基于矩阵授权的策略(如果您有多个具有不同权限的用户).

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.

这篇关于如何为Jenkins添加用户名和密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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