Jenkins持續整合 之 GitLab使用LDAP登陸
阿新 • • 發佈:2018-12-02
一、在配置檔案下增加如下內容
gitlab_rails['ldap_enabled'] = true ###! **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: '10.3.151.13' port: 389 uid: 'sAMAccountName' bind_dn: 'cn=ittest,cn=Users,dc=xxx,dc=com' method: 'plain' # "tls" or "ssl" or "plain" password: 'xxxx' active_directory: true allow_username_or_email_login: false lowercase_usernames: false block_auto_created_users: false base: 'OU=yyy,DC=xxx,DC=com' user_filter: '' EOS
備註:需執行gti-clt reconfigure git-clt restart 才生效