我在 ubuntu 服务器上将 gitlab 作为 docker 容器运行,我的 Active Directory 在 Windows Server 2019 上运行,但在配置
gitlab.rb
文件与 Active Directory 集成后,我收到此错误:
无法从 Ldapmain 对您进行身份验证,因为“连接超时 - 用户指定的超时”
我的问题:是否有必要将我的 Gitlab 服务器主机加入 Active Directory?
我的 gitlab.rb 是:
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: ‘Active Directory’
host:‘active directory ip’
port: 389
uid: ‘sAMAccountName’
method: ‘plain’ # “tls” or “ssl” or “plain”
bind_dn: ‘CN=Ldap Search,OU=All Accounts,DC=domain,DC=com’
password: ‘12345678’
active_directory: true
allow_username_or_email_login: false
block_auto_created_users: false
base: ‘OU=All Users,DC=domain,DC=com’
EOS
我该如何解决我的问题?
Gitlab 用户使用 Active Directory 进行身份验证
我解决了我的问题:写bind_dn: '[email protected]" 而不是bind_dn: 'CN=Ldap Search,OU=All Accounts,DC=domain,DC=com