###! **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: 'IP' port: 389 #389 為非加密port 636為(LDAPS)有加密port uid: 'sAMAccountName' bind_dn: 'CN=Administrator,CN=Users,DC=test,DC=com' password: 'password' encryption: 'plain'# "start_tls" or "simple_tls" or "plain" verify_certificates: true smartcard_auth: false active_directory: true allow_username_or_email_login: false#可以讓使用者使用 名稱 或 email 帳號登入 lowercase_usernames: true block_auto_created_users: true# 如果 true ,就會讓第一次登入的 # 使用者看到 Your account is blocked. # Retry when an admin has unblocked it. # 它需要管理者解除才行 base: 'OU=PRD,OU=TW,DC=test,DC=com ' EOS