Git clone does not work on versions 7.12 to 7.14 gitlab with a ldap user
Summary :
- Run "git clone" with a LDAP user on 7.14 freshly installed fails.
- Run "git clone" with a LDAP user on 7.11.4 freshly installed works fine.
- Run "git clone" with a LDAP user on 7.14 migrated from 7.11.4 works fine.
Detailed scenario
Case OK :
- Download gitlab version 7.11.4 and run the command rpm -i gitlab
- Configure the ldap settings in gitlab.rb file
- Run the command "gitlab-ctl reconfigure"
- Connect on the web interface with a ldap user and create a project
- On Windows run the git clone (http) command with the LDAP user on "tortoisegit". The result log on nginx is OK :
[26/Aug/2015:10:12:51 +0200] "GET /referentiel-configuration/iDeploy.git/info/refs?service=git-upload-pack HTTP/1.1" 401 0 "-" "git/1.9.5.msysgit.0" [26/Aug/2015:10:12:51 +0200] "GET /referentiel-configuration/iDeploy.git/info/refs?service=git-upload-pack HTTP/1.1" 401 0 "-" "git/1.9.5.msysgit.0" [26/Aug/2015:10:12:52 +0200] "GET /referentiel-configuration/iDeploy.git/info/refs?service=git-upload-pack HTTP/1.1" 200 371 "-" "git/1.9.5.msysgit.0" [26/Aug/2015:10:12:53 +0200] "POST /referentiel-configuration/iDeploy.git/git-upload-pack HTTP/1.1" 200 23133 "-" "git/1.9.5.msysgit.0"
- Upgrade gitlab 7.11.4 to 7.14.0 with the command
rpm -Uvh gitlab-ce-7.14.0-ce.0.el7.x86_64.rpm
the result of the git clone command is ok
Case on error :
- Download gitlab version 7.14 and run the command rpm -i gitlab
- Configure the ldap settings in gitlab.rb file
- Run the command "gitlab-ctl reconfigure"
- Connect on the web interface with a ldap user and create a project
- On Windows run the git clone (http) command with "tortoisegit", it fails. Nginx log :
[26/Aug/2015:15:09:40 +0200] "GET /devops/IDEPLOY.git/info/refs?service=git-upload-pack HTTP/1.1" 401 0 "-" "git/1.9.5.msysgit.0" [26/Aug/2015:15:09:40 +0200] "GET /devops/IDEPLOY.git/info/refs?service=git-upload-pack HTTP/1.1" 401 0 "-" "git/1.9.5.msysgit.0" [26/Aug/2015:15:09:40 +0200] "GET /devops/IDEPLOY.git/info/refs?service=git-upload-pack HTTP/1.1" 401 0 "-" "git/1.9.5.msysgit.0"
Note
- With a internal user, the git clone command works fine for all gitlab version