Gitlab10.0域账号LDAP集成
来源:互联网 发布:plmn有什么网络 编辑:程序博客网 时间:2024/06/06 06:32
Gitlab集成LDAP之后会出现LDAP的登录用户和密码,配置方法如下:
第一步:修改配置文件:/etc/gitlab/gitlab.rb
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '10.182.1.10' #域账号管理服务器IP
port: 389
uid: 'sAMAccountName'
bind_dn: 'cn=admin,ou=应用帐号,dc=ad,dc=mycompany,dc=com,dc=cn' #域账号管理员DN
password: '123456'#域账号管理员密码
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
verify_certificates: true
ca_file: ''
ssl_version: ''
active_directory: true
allow_username_or_email_login: true
block_auto_created_users: false
base: 'dc=ad,dc=mycompany,dc=com,dc=cn'
user_filter: ''
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
name: 'cn'
first_name: 'givenName'
last_name: 'sn'
# ## EE only
# group_base: ''
# admin_group: ''
# sync_ssh_keys: false
#
# secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
# label: 'LDAP'
# host: '_your_ldap_server'
# port: 389
# uid: 'sAMAccountName'
# bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
# password: '_the_password_of_the_bind_user'
# encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
# verify_certificates: true
# ca_file: ''
# ssl_version: ''
# active_directory: true
# allow_username_or_email_login: false
# block_auto_created_users: false
# base: ''
# user_filter: ''
# attributes:
# username: ['uid', 'userid', 'sAMAccountName']
# email: ['mail', 'email', 'userPrincipalName']
# name: 'cn'
# first_name: 'givenName'
# last_name: 'sn'
# ## EE only
# group_base: ''
# admin_group: ''
# sync_ssh_keys: false
EOS
第二步: 执行sudo gitlab-ctl reconfigure命令重新加载GitLab配置。
- Gitlab10.0域账号LDAP集成
- LDAP账号同步和Windows域集成验证
- java使用域账号登陆,ldap协议
- ldap 网络账号
- LDAP 多账号统一解决方案
- WebLogic 与LDAP集成
- QC集成LDAP指南
- impala集成LDAP
- hive集成LDAP
- LDAP集成SSL/TLS
- gitlab集成ldap配置
- LDAP-Linux多系统账号共享
- 第二本书unit8 ldap网络账号
- 集成各个系统账号
- JIRA和LDAP的集成
- 【总结】JAVA集成LDAP认证
- Hadoop配置LDAP集成Kerberos
- apache svn集成ldap认证
- 移动端1px解决方案
- LWC 58:725. Split Linked List in Parts
- Cloud + TiDB 技术解读
- Rabbitmq常用口令
- ext6.2如何在grid表格列里加button按钮
- Gitlab10.0域账号LDAP集成
- 关于generate用法的总结【Verilog】
- HDU 1012 u Calculate e
- nodejs生成二维码
- 计划3--文件打开
- qml学习笔记(三):可视化元素基类Item详解(下半场)
- MFC新建工程找不到窗体的问题
- 获取项目加载根路径,得到文件夹下的所有指定后缀文件名列表
- python2.7安装MySQLdb