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

Closed
Open
Created Jan 02, 2015 by Administrator@rootOwner

LDAP Authentication failures in 7.6.2

Created by: jchodakowski

I'm getting the following in the production.log when trying to authenticate against a known good LDAP source:

Started POST "/users/auth/ldapmain/callback" for 74.121.197.77 at 2014-12-29 10:07:56 -0500
Processing by OmniauthCallbacksController#ldapmain as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"eOYz1AijHR78B99qav9ICTqkIwOocT634ZjpH05Loh0=", "username"=>"jasonc", "password"=>"[FILTERED]"}
Completed 500 Internal Server Error in 13ms
Processing by OmniauthCallbacksController#failure as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"eOYz1AijHR78B99qav9ICTqkIwOocT634ZjpH05Loh0=", "username"=>"jasonc", "password"=>"[FILTERED]"}
Redirected to https://gitlab.declivis.com/users/sign_in
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/users/sign_in" for 74.121.197.77 at 2014-12-29 10:07:56 -0500
Processing by SessionsController#new as HTML
Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 0.0ms)

There are no other messages on the server side that indicate what the server error actually is. On the client side you see this:

Could not authorize you from Ldapmain because "Undefined method 'provider' for nil:nilclass".

The LDAP connectivity is good and tests properly:

bundle exec rake gitlab:ldap:check RAILS_ENV=production
Checking LDAP ...

LDAP users with access to your GitLab server (only showing the first 100 results)
Server: ldapmain
    DN: uid=jasonc,ou=users,dc=declivis,dc=com   uid: jasonc
    DN: uid=jenkins,ou=users,dc=declivis,dc=com  uid: jenkins

Checking LDAP ... Finished

Can provide configurations on request, but honestly I think the configuration works, something else is wonky... which I'm willing to admin could be missing from the LDAP schema but a better error message on the server side would help.

Assignee
Assign to
Time tracking