Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #10453

Closed
Open
Created Oct 09, 2017 by Administrator@rootOwner

Gitlab LDAP Authentication Failure

Created by: ghovat

I want to connect my Gitlab Instance with my OpenLDAP Host. Here is my LDAP Config:

ou=users
Distinguished Name: 
[email protected],ou=users,dc=ldap,dc=COMPANY,dc=com
cn = [email protected]
uid = [email protected]
displayName = FIRSTNAME LASTNAME
givenName = FIRSTNAME
sn = LASTNAME
o = FIRSTNAME.LASTNAME

Everything Upercase means placeholder for a user

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 error. I dont see any error in my configuration and nearly the same configuration i use for other services as well.

Thanks

Assignee
Assign to
Time tracking