vim /etc/gitlab/gitlab.rb, 可以配置很多个server,因此与sssd服务一样可以配置多个ldap作为高可用
gitlab-ctl reconfiguregitlab-rake gitlab:ldap:checkgitlab-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)Checking LDAP ... Finished