Skip to content

Can't clone repo over HTTP with LDAP authorization

Hello.

I have installed Gitlab server 8.2.3. It is connected with AD over LDAP. Authentication in browser works perfectly. bundle exec rake gitlab:ldap:check RAILS_ENV=production say - All OK. Cloning with 'internal' user like root works fine. But when I try to clone over http I have problem with authorization:

git clone http://gitlab.xxx.ru/bizaccount/bizaccount-deploy.git
Cloning into 'bizaccount-deploy'...
Username for 'http://gitlab.xxx.ru': s.antipov
Password for 'http://s.antipov@gitlab.xxx.ru': 
fatal: Authentication failed for 'http://gitlab.xxx.ru/bizaccount/bizaccount-deploy.git/'
System information
System:		Ubuntu 14.04
Current User:	git
Using RVM:	no
Ruby Version:	2.1.7p400
Gem Version:	2.2.5
Bundler Version:1.7.9
Rake Version:	10.4.2
Sidekiq Version:3.3.0

GitLab information
Version:	8.2.3
Revision:	1322bd7
Directory:	/var/www/git/gitlab
DB Adapter:	postgresql
URL:		https://gitlab.xxx.ru
HTTP Clone URL:	https://gitlab.xxx.ru/some-group/some-project.git
SSH Clone URL:	git@gitlab.xxx.ru:some-group/some-project.git
Using LDAP:	yes
Using Omniauth:	no

GitLab Shell
Version:	2.6.8
Repositories:	/var/www/git/repositories/
Hooks:		/var/www/git/gitlab-shell/hooks/
Git:		/usr/bin/git