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.