vim /etc/gitlab/gitlab.rb, 可以配置很多个server,因此与sssd服务一样可以配置多个ldap作为高可用

gitlab同步ldap账号 gitlab接入ldap_linux

gitlab-ctl reconfigure


gitlab-rake gitlab:ldap:check


gitlab-ctl restart
gitlab-rake gitlab:ldap:check
Checking LDAP ...

LDAP: ... Server: ldapmain
LDAP authentication... Success
LDAP users with access to your GitLab server (only showing the first 100 results)