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

Closed
Open
Created Aug 06, 2013 by Administrator@rootOwner

LDAP authentication failed on GitLab 5.4

Created by: csfreebird

I always got the following error when trying to login using my LDAP account: Could not authorize you from LDAP because "Invalid credentials".

Some people said it was fixed already. But I am sure the LDAP configuration is correct in gitlab.yml file.

LDAP settings

ldap: enabled: true host: 'mmm.$company.com' base: 'DC=$company,DC=com' port: 389 uid: 'sAMAccountName' method: 'plain' # "ssl" or "plain" bind_dn: 'CN=firstName lastName,OU=China,OU=International,OU=Offices,DC=$company,DC=com' password: 'mypwd'

I am sure the bind_dn and base fields are correct, because I tried ldapsearch to connect our ActiveDirectory server from gitlab server, it passed.

And I cannot find any useful log from production.log, just like below: 4724800: Parameters: {"utf8"=>"✓", "authenticity_token"=>"qquaKce4brdTL2pFsRWDCeC2ncQrFZd/JvPKXnCzBxI=", "username"=>"myAccountName", "password"=>"[FILTERED]"}

How to profile this problem now?

Assignee
Assign to
Time tracking