Hello,
Trying to use LDAP authentication against Active Directory (AD). According to known howtos, the below is in /etc/gitlab/gitlab.rb:
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'EXAMPLE'
host: 'EXAMPLE.COM'
port: 636
uid: 'sAMAccountName' # 'sAMAccountName'
method: 'tls' # "tls" or "ssl" or "plain"
bind_dn: 'cn=binduser,cn=Users,dc=example,dc=com'
password: 'superpassword'
timeout: 10
active_directory: true
allow_username_or_email_login: false
block_auto_created_users: false
base: 'cn=Users,dc=example,dc=com'
user_filter: ''
But
gitlab-rake gitlab:ldap:check
returns
Net::LDAP::Error: Connection reset by peer @ io_fillbuf - fd:14
Note: when I use
ldapsearch -D "cn=binduser,cn=Users,dc=example,dc=com" -b "cn=Users,dc=example,dc=com" -H ldaps://example.com:636 -w superpassword
I get all the users list, as expected (so credentials are good, certificate is good etc)
How do I handle this problem?
Thanks/