1.密码管理员密码,如何修改

进入/var/jenkins_home/users/admin目录下修改config.xml文件:

以下密码是admin

<hudson.security.HudsonPrivateSecurityRealm_-Details>
<passwordHash>#jbcrypt:$2a$10$oZgKQuNVqiMglf2lqPm2WOfXqZoq5gWt4NvrT1iugjCNEtVDsUP1G</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>

2.配置了LDAP导致管理员密码登录不了。

进入/var/jenkins_home目录下,修改config.xml文件

<securityRealm class="hudson.security.LDAPSecurityRealm" plugin="ldap@1.14">
<server>ldap://192.168.160.22:389</server>
<rootDN></rootDN>
<inhibitInferRootDN>false</inhibitInferRootDN>
<userSearchBase></userSearchBase>
<userSearch>uid={0}</userSearch>
<groupMembershipStrategy class="jenkins.security.plugins.ldap.FromGroupSearchLDAPGroupMembershipStrategy">
<filter></filter>
</groupMembershipStrategy>
<managerPasswordSecret>{AQAAABAAAAAQWUm3L5Y1+G9NqYWWEM2ogwERgidh0kbQCXCGvpdFJzQ=}</managerPasswordSecret>
<disableMailAddressResolver>false</disableMailAddressResolver>
<displayNameAttributeName>displayname</displayNameAttributeName>
<mailAddressAttributeName>mail</mailAddressAttributeName>
<userIdStrategy class="jenkins.model.IdStrategy$CaseInsensitive"/>
<groupIdStrategy class="jenkins.model.IdStrategy$CaseInsensitive"/>
</securityRealm>

改成:

<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>true</disableSignup>
<enableCaptcha>false</enableCaptcha>
</securityRealm>

最新文章

  1. ehcache memcache redis 三大缓存
  2. _crol_和_cror_函数
  3. java编程思想恶心的enum状态机示例
  4. 协处理器CP15
  5. 官方 Animator 例子解析 Animator.MatchTarget
  6. C# MVC 自学笔记—4 添加视图
  7. BGP多线单IP技术实现形式以及其他双线对比
  8. 关于rem单位
  9. hdu1251字典树递归算法
  10. if_else_while_for
  11. java操作mongodb &amp; springboot整合mongodb
  12. rxjs2学习
  13. 4.3 explain 之 type
  14. Jupyter notebook安装
  15. COM中参数标识
  16. [leetcode]48. Rotate Image旋转图像
  17. 如何写出健壮的Java代码
  18. javaweb项目中的文件上传下载功能的实现
  19. 剑指offer-顺时针打印矩阵-二维数组
  20. 【LeetCode371】 Sum of Two Integers

热门文章

  1. 在SCIKIT中做PCA 逆运算 -- 新旧特征转换
  2. 利用GROUP_CONCAT和GROUP BY实现字段拼接
  3. OC中自定义构造方法
  4. Oracle与mysql的字段类型整理
  5. JAVA中LOCK
  6. HotSpot的算法实现
  7. layui框架部分功能介绍
  8. Ubuntu热键控制spotify播放和音量调节
  9. How to get the file in a resource folder
  10. 使用Git初始化项目