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
  • #4936

Closed
Open
Created Aug 29, 2013 by Administrator@rootOwner

GitLab 6.0 LDAP Authentication Problem

Created by: jestillore

I followed the documentation to enable LDAP authentication. Here's my gitlab.yml

ldap:
    enabled: true
    host: 'servername.ourdomain.com'
    base: 'ou=Estudyante,ou=Chiko,dc=ourdomain,dc=com'
    port: 389
    uid: 'uid'
    method: 'plain' # "ssl" or "plain"
    bind_dn: 'cn=admin,dc=ourdomain,dc=com'
    password: 'p@ssw0rd'
    allow_username_or_email_login: true
sudo -H bundle exec rake gitlab:env:info RAILS_ENV=production

command output show

System information
System:     Ubuntu
Current User:   root
Using RVM:  no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version 1.3.5
Rake Version:   10.1.0

GitLab information
Version:        6.0.0
Revision:       86c9737
Directory:      /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab.xxxxxxxxx.xxx
HTTP Clone URL:     http://gitlab.xxxxxxxxx.xxx/some-project.git
SSH Clone URL:  [email protected]:some-project.git
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version:        1.7.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks
Git:        /usr/bin/git

but when I tried to authenticate to GitLab using an LDAP account, it always prompts that the Username and Password is invalid. I tried tcpdump to check that an LDAP request is sent but tcpdump logs nothing which I suspect that my GitLab server is not communicating to my LDAP Server. I'm sure that my LDAP is working for I used same configuration with Redmine and it works.

Assignee
Assign to
Time tracking