当前位置:网站首页>LDAP application (4) Jenkins access
LDAP application (4) Jenkins access
2022-07-06 08:18:00 【Rain emperor night tears】
LDAP Application articles (4)Jenkins Access
To configure Jenkins Access LDAP You need to be careful , Because once enabled in the configuration LDAP After verifying the user , Previous users will not be able to log in , Include admin Account .
Certificate configuration
If Jenkins adopt ldaps Access , Must be configured separately java Certificate of operating environment . If you use ldap Access Agreement , You can skip this part .
Download and import
Certificate configuration , It only takes two steps , That is, download and import . At the time of import , According to jdk The version location will be slightly different , In especial jdk11 Version above , No more jre Catalog , Please note that !
openssl s_client -connect <address>:636 >> host.crt
keytool -import -trustcacerts -alias <address> -file host1.crt -keystore /usr/java/jdk-17.0.3.1/lib/security/cacerts
When importing certificates , You need to enter the certificate password , The password defaults to : changeit . In fact, I don't know how this came from , It seems that everyone uses it like this ~~~
Some documents will first clear the BEGIN CERTIFICATE and END CERTIFICATE Content , But according to the actual measurement , These operations are not required .
Jenkins Configuration in
Security configuration
Get into Global security configuration in , Fill in the information according to the general operation on the Internet , Note the following two items : User search base And Group search base , Represents the search starting point for users and groups , Don't enter the complete DN Information , Just enter the last section of users and groups ou that will do .
Display Name LDAP attribute One is used to display the user name , But in general posixAccount Account does not have this attribute , It can be changed to cn attribute .
Do not save directly after modification , Be sure to click Test LDAP settings Button , Save after confirmation !!!
Role based matrix authorization
Role based matrix authorization will not be repeated here , Just configured in the previous step LDAP after , It must be here Assign Roles Page Global roles in , Ensure that at least one user has admin role . In this way, the user can be managed normally Jenkins.
Troubleshooting
As mentioned at the beginning , In case of an accident when modifying , Cause unable to log in , It can also be repaired by the following methods . stay Jenkins Look for config.xml file , If the environment variable is configured JENKINS_HOME , The file may be in the specified directory . Open the file , Configure the following content as false :
<useSecurity>flase</useSecurity>
restart Jenkins After service , You will find that the system allows anonymous login , And you can do anything .
Reference material
边栏推荐
- C language - bit segment
- C language custom type: struct
- Image fusion -- challenges, opportunities and Countermeasures
- [cloud native] teach you how to build ferry open source work order system
- Epoll and IO multiplexing of redis
- What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
- [Yugong series] February 2022 U3D full stack class 010 prefabricated parts
- Go learning notes (3) basic types and statements (2)
- Upgrade tidb with tiup
- Asia Pacific Financial Media | "APEC industry +" Western Silicon Valley invests 2trillion yuan in Chengdu Chongqing economic circle to catch up with Shanghai | stable strategy industry fund observatio
猜你喜欢
Make learning pointer easier (3)
"Designer universe" Guangdong responds to the opinions of the national development and Reform Commission. Primary school students incarnate as small community designers | national economic and Informa
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
[research materials] 2021 Research Report on China's smart medical industry - Download attached
3. File operation 3-with
IP lab, the first weekly recheck
【MySQL】数据库的存储过程与存储函数通关教程(完整版)
Circular reference of ES6 module
The Vice Minister of the Ministry of industry and information technology of "APEC industry +" of the national economic and information technology center led a team to Sichuan to investigate the operat
Understanding of law of large numbers and central limit theorem
随机推荐
ROS learning (IX): referencing custom message types in header files
"Designer universe": "benefit dimension" APEC public welfare + 2022 the latest slogan and the new platform will be launched soon | Asia Pacific Financial Media
Résumé des diagrammes de description des broches de la série ESP
Database basic commands
从 CSV 文件迁移数据到 TiDB
使用 Dumpling 备份 TiDB 集群数据到兼容 S3 的存储
Migrate data from SQL files to tidb
Upgrade tidb with tiup
CAD ARX gets the current viewport settings
Use dumping to back up tidb cluster data to S3 compatible storage
备份与恢复 CR 介绍
使用 TiDB Lightning 恢复 S3 兼容存储上的备份数据
leetcode刷题 (5.31) 字符串
[cloud native] teach you how to build ferry open source work order system
好用的TCP-UDP_debug工具下载和使用
LDAP应用篇(4)Jenkins接入
24. Query table data (basic)
Mobile Test Engineer occupation yyds dry goods inventory
Ruffian Heng embedded bimonthly, issue 49
[research materials] 2021 Research Report on China's smart medical industry - Download attached