1、ldap安装
2、gitlab安装
3、gitlab修改配置
vim /srv/gitlab/config/gitlab.rb
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '10.7.30.63'
port: 389
uid: 'cn'
bind_dn: 'cn=Manager,dc=xinhua,dc=org'
password: '111111'
encryption: