LDAP Authentication Not possible (Invalid Credentials)

Hi,

my OpenLDAP User Config is:

ou=users
Distinguished Name: cn=USERNAME@email.com,ou=users,dc=ldap,dc=COMPANY,dc=com
cn = USERNAME@email.com
displayName = FIRSTNAME LASTNAME
givenName = FIRSTNAME
sn = LASTNAME
o = FIRSTNAME.LASTNAME

Here is my gitlab.rb

gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {
'main' => {
  'label' => 'LDAP',
  'active_directory' => false,
  'host' =>  'ldap.COMPANY.com',
  'port' => 389,
  'encryption' => 'plain',
  'allow_username_or_email_login' => false,
  'uid' => 'cn',
  'method' => 'plain',
  'username' => 'o',
  'email' => 'cn',
  'name' => 'displayName',
  'firstname' => 'givenName',
  'lastname' => 'sn',
  #'bind_dn' => '',
  #'password' => '',
  'base' => 'DC=ldap,DC=COMPANY,DC=com',
  }
}

Currently i dont need a bind admin for quering.
If i run gitlab-rake gitlab:ldap:check
It returns all the users without any problem.
But as soon as I try to login I get a wrong credentials.

Hey ghovat,

Are you using GitLab Community Edition? As far as I know that one does not support LDAP.
Source: https://about.gitlab.com/products/

Best regards,
Roland