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

Closed
Open
Created Aug 13, 2017 by Administrator@rootOwner

Could not authenticate you from Ldapmain because "Invalid credentials"

Created by: kedarshastry

Cannot login to Gitlab using LDAP:

gitlab-rake gitlab:ldap:check was successful and lists 100 users from LDAP, but when I try to login I get "Could not authenticate you from Ldapmain because "Invalid credentials"

I find below message in production log


Completed 200 OK in 56ms (Views: 35.1ms | ActiveRecord: 10.1ms) Completed 200 OK in 58ms (Views: 39.0ms | ActiveRecord: 10.3ms) Started POST "/users/auth/ldapmain/callback" for x.x.x.x at 2017-08-13 21:49:26 +0000 Processing by OmniauthCallbacksController#failure as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"GvrLlXFHNnik0sKf8PPsEp66ohF+iI v7pTrrnsScyR4uJ1QKJksjBXv532/4Y1kKMdH/EwWOLLrG4dzLwJhYYg==", "username"=>"UID", "password"=>"[FILTERED]"}

Below is the LDAP setting in gitlab.rb

gitlab_rails['ldap_enabled'] = true gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below main: # 'main' is the GitLab 'provider ID' of this LDAP server label: 'LDAP' host: 'hostname.x.y.z' port: 389 uid: 'uid' method: 'plain' # "tls" or "ssl" or "plain" bind_dn: 'MYDN' password: 'MYPASSWORD' base: 'DC=XYZ,DC=net' EOS

Appreciate all help & support

Assignee
Assign to
Time tracking