vim /home/git/gitlab/config/gitlab.yml
ldap:
enabled: true
servers:
host: 'host'
uid: 'uid'
bind_dn: 'cn=root,dc=xxx,dc=com'
password: 'xxx'
ldap:
enabled: true
servers:
host: 'host'
uid: 'uid'
bind_dn: 'cn=root,dc=xxx,dc=com'
password: 'xxx'
base: 'dc=xxx,dc=com'
检查配置是否正确命令如下:
sudo -u git -H bundle exec rake gitlab:ldap:check RAILS_ENV=production