Hi, I have an issue with the following LDAP configuration, I replaced confidential elements by letters like aaaaaaa:
LDAP Settings
###! Docs: https://docs.gitlab.com/omnibus/settings/ldap.html
###! Be careful not to break the indentation in the ldap_servers block. It is
###! in yaml format and the spaces must be retained. Using tabs will not work.
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: ‘bbbbbbbb’
port: 636
uid: ‘aaaaaaaa’
bind_dn: ‘uid=aaaaaaaa,ou=apps,dc=ggg,dc=ffffffff,dc=com’
password: ‘cccccccc’
encryption: ‘simple_tls’
verify_certificates: true
base: ‘ou=people,dc=ggg,dc=ffffffff,dc=com’
user_filter: ‘’
EOS
Which returns invalid credentials and the debug ouput gives me no user:
gitlab-rake gitlab:ldap:check --trace
** Invoke gitlab:ldap:check (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:ldap:check
Checking LDAP …
Server: ldapmain
LDAP authentication… Success
LDAP users with access to your GitLab server (only showing the first 100 results)
Checking LDAP … Finished
While the same ldapsearch works fine and I can retrieve all the users:
ldapsearch -D uid=aaaaaaaa,ou=apps,dc=ggg,dc=ffffffff,dc=com -Z -H ldaps://bbbbbbbb:636 -b ou=people,dc=ggg,dc=ffffffff,dc=com -w cccccccc
Many thanks for your help.
P.S: I am using the latest version of gitlab-ee with no license and openldap.