Hi there,
I try to configure the ldap authentication within gitlab.
This is the ldap part in /etc/gitlab/gitlab.rb
gitlab_rails[‘ldap_enabled’] = true
###! remember to close this block with ‘EOS’ below
gitlab_rails[‘ldap_servers’] = YAML.load <<-‘EOS’
main:
label: ‘Active Directory’
host: ‘xxmchdcxx.itbwi.net’
port: 636
uid: ‘sAMAccountName’
bind_dn: ‘ldap_account@itbwi.net’
password: ‘my_secret’
encryption: ‘start_tls’
verify_certificates: false,
active_directory: true
allow_username_or_email_login: false
block_auto_created_users: true
base: ‘DC=itbwi,DC=net’
user_filter: ‘’
EOS
If I execute
gitlab-rake gitlab:ldap:check --trace
there is an error:
gitlab-rake gitlab:ldap:check --trace
** Invoke gitlab:ldap:check (first_time)
** Invoke gitlab_environment (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab_environment
** Execute gitlab:ldap:check
Checking LDAP …
LDAP: … Server: ldapmain
Exception: Connection reset by peer @ io_fillbuf - fd:10
Checking LDAP … Finished
Can someone help me to get it work?
ldapsearch is working with LDAPS not with LDAP:
ldapsearch -v -H ldaps://itbwi.net:636 -b “DC=itbwi,DC=net” -D “CN=ldap_account,OU=Admin,DC=itbwi,DC=net” -W “(&(objectclass=user)(sAMAccountName=testuser))” -v
The Server certificate of the LDAPS is from an internal CA is this a problem ?