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

Closed
Open
Created May 29, 2013 by Administrator@rootOwner

Clone over http(s) with ldap authentication fails (authentication failed)

Created by: 164747

Problem

Running: Gitlab 5.1, the following work fine:

  • Ldap user login
  • [email protected] login
  • ssh-clone
  • http clone using [email protected]

And the following fails:

  • http clone using ldap user account, (fatal: Authentication failed)

Info

I succesfully log in with ldap username "johsmi", but in the admin users console inside gitlab, my username is "john.smith" (the full firstname.lastname instead of firlas as I use for ldap login). Don't know if that is important.

Solution ?

I have found some information on this specific issue, for example

http://shcatula.wordpress.com/2012/12/03/http-clone-with-ldap-authentication-in-gitlab/ https://gist.github.com/elvanja/4195057

The solutions is supposed to be editing editing the file

/home/git/gitlab/lib/gitlab/backend/grack_auth.rb

However those solutions seem to be for older versions of gitlab, and the file grack_auth.rb does not look the same any longer.

Assignee
Assign to
Time tracking