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: f

本文档详细介绍了如何将GitLab 10.0与LDAP进行集成,包括修改配置文件`gitlab.rb`以设置LDAP服务器的连接参数,如主机、端口、绑定DN、密码等,并通过`sudo gitlab-ctl reconfigure`命令重新加载配置以启用集成。
861

被折叠的 条评论
为什么被折叠?



