1.Gitlab已经安装完毕
2.配置Gitlab采用AD登录
gitlab_rails['ldap_enabled'] = true
gitlab_rails['prevent_ldap_sign_in'] = false
###! **remember to close this block with 'EOS' below**
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '192.168.56.131'
port: 389
uid: 'SamaccountName'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'cn=administrator,cn=Users,dc=hanmma,dc=cn'
password: 'Haixiao123'
active_directory: true
allow_username_or_email_login: true
block_auto_created_users: false
base: 'dc=hanmma,dc=cn'
user_filter: ''
EOS
Gitlab管理员 标准用户依然可以登录(进行授权)