我在与 GitLab 不同的 VM 上运行 Kolab 服务,并在那里设置了多个域。我无法将 GitLab 配置为在同一 Kolab 群件服务器上的多个(所有)域中搜索登录用户,即 ou=People,dc=mydomain1,dc=com 和 ou=People,dc=mydomain2,dc=com。我尝试过仅设置“ou=People”、放置通配符、使用 LDAP 搜索运算符 (|(ou=...,dc=..)(ou...)) 和许多其他东西,但没有运气。这是适用于一个域的当前配置(这也是 Kolab 配置的主要父域):
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: 'my.host.com'
port: 389
uid: 'mail'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'uid=kolab-service,ou=Special Users,dc=mydomain1,dc=com'
password: 'mypassword'
active_directory: false
allow_username_or_email_login: false
block_auto_created_users: false
base: 'ou=People,dc=mydomain1,dc=com'
user_filter: ''
有什么方法可以设置“基本”参数,以便我可以使用来自多个域的用户(但在同一个 LDAP 服务器上)登录?