LDAP + redmine + gerrit + jenkins + gitlab -- LDAP配置
来源:互联网 发布:视频编辑专家软件 编辑:程序博客网 时间:2024/05/21 18:34
环境
# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
[1] 安装 OpenLDAP Server
# yum install openldap-{servers,clients} -y# cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG# chown ldap. /var/lib/ldap/DB_CONFIG
# systemctl start slapd# systemctl enable slapd
[2] 设置 OpenLDAP 管理员密码
# ldapadd -Y EXTERNAL -H ldapi:/// -f chrootpw.ldif
chrootpw.ldif
文件内容请见本文最后部分
[3] 导入Schemas
# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif
[4] Set your domain name on LDAP DB.
# ldapmodify -Y EXTERNAL -H ldapi:/// -f chdomain.ldif# ldapadd -x -D cn=root,dc=r7data,dc=com -W -f basedomain.ldif
chdomain.ldif
文件和basedomain.ldif
文件内容请见本文最后部分
[5] 开放端口(LDAP使用389/TCP)
# firewall-cmd --add-service=ldap --permanent# firewall-cmd --reload
附, 本文中用到的完整ldif
文件
生成密码
# slappasswd New password:Re-enter new password:{SSHA}xxxxxxxxxxxxxxxxxxxxxxx
步骤2中用到的ldif
# cat chrootpw.ldif # specify the password generated above for "olcRootPW" sectiondn: olcDatabase={0}config,cn=configchangetype: modifyadd: olcRootPWolcRootPW: {SSHA}xxxxxxxxxxxxxxxxxxxxxxx
olcRootPW
值为slappasswd
生成的密码
步骤4中用到的第一个ldif
# cat chdomain.ldif# replace to your own domain name for "dc=***,dc=***" section# specify the password generated above for "olcRootPW" sectiondn: olcDatabase={1}monitor,cn=configchangetype: modifyreplace: olcAccessolcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read by dn.base="cn=root,dc=r7data,dc=com" read by * nonedn: olcDatabase={2}hdb,cn=configchangetype: modifyreplace: olcSuffixolcSuffix: dc=r7data,dc=comdn: olcDatabase={2}hdb,cn=configchangetype: modifyreplace: olcRootDNolcRootDN: cn=root,dc=r7data,dc=comdn: olcDatabase={2}hdb,cn=configchangetype: modifyadd: olcRootPWolcRootPW: {SSHA}xxxxxxxxxxxxxxxxxxxxxxxdn: olcDatabase={2}hdb,cn=configchangetype: modifyadd: olcAccessolcAccess: {0}to attrs=userPassword,shadowLastChange by dn="cn=root,dc=r7data,dc=com" write by anonymous auth by self write by * noneolcAccess: {1}to dn.base="" by * readolcAccess: {2}to * by dn="cn=root,dc=r7data,dc=com" write by * read
olcRootPW
值为slappasswd
生成的密码
步骤4中用到的第二个ldif
# cat basedomain.ldif# replace to your own domain name for "dc=***,dc=***" sectiondn: dc=r7data,dc=comobjectClass: topobjectClass: dcObjectobjectclass: organizationo: R7DATAdc: r7datadn: cn=root,dc=r7data,dc=comobjectClass: organizationalRolecn: rootdescription: Directory Managerdn: ou=People,dc=r7data,dc=comobjectClass: organizationalUnitou: Peopledn: ou=Group,dc=r7data,dc=comobjectClass: organizationalUnitou: Group
参考
Configure LDAP Server: Configure LDAP Server in order to share users’ accounts in your local networks.
阅读全文
0 0
- LDAP + redmine + gerrit + jenkins + gitlab -- LDAP配置
- LDAP + redmine + gerrit + jenkins + gitlab -- 使用LAM(LDAP Account Manager)管理用户
- LDAP + redmine + gerrit + jenkins + gitlab -- 添加已有git仓库到gerrit
- gitlab配置ldap
- gitlab集成ldap配置
- jenkins ldap 认证配置
- 软件项目管理平台:repo+gerrit+jenkins+gitlab+sonar+redmine
- gerrit + ldap or http
- Gerrit+Ldap登陆验证
- 关于 jenkins LDAP 的配置详情
- LDAP配置
- jenkins添加ldap
- ldap安装与关联redmine
- Ubuntu之Gitlab、Gerrit、Jenkins协调工作配置
- CentOS安装gitlab,gerrit,jenkins并配置ci流程
- LDAP
- LDAP
- LDAP
- 思科路由器基础配置
- IntelliJ Idea各种技巧设置笔记和错误解决
- IntelliJ IDEA 学习笔记
- fiddler抓取手机请求
- Cache和主存的效率计算问题
- LDAP + redmine + gerrit + jenkins + gitlab -- LDAP配置
- mytable0.2(小优化)
- 图论500题
- JavaScript标准参考教程(alpha)
- 计算机概论
- C语言的产生与影响
- 人脸识别之人脸检测(一)--综述
- Tomcat的Comet实践
- leetcode- 207. Course Schedule