git, Apache/httpd and LDAP - git client unable to access (error 500)

Added by Eduardo Lúcio Amorim Costa over 2 years ago

After the last CentOS 7's update we started to have the problems below when trying to clone a git repository.

NOTE: The infrastructure was built using LDAP, Redmine, grack and git.

Problem observed in the git client...

[some_user@some_user-pc ~]$ git clone
Cloning into 'some_repo'...
Username for '': some_git_user
Password for '': 
fatal: unable to access '': The requested URL returned error: 500

Problem observed on httpd/git server...

[root@hostname ~]# less +F /var/log/httpd/error_log
[Wed Jun 03 17:38:49.745122 2020] [authn_core:error] [pid 14382] [client] AH01796: AuthType Basic configured without corresponding module

Apache/httpd configuration (Apache/httpd -> redmine -> crack -> git)...

[root@hostname ~]# cat /etc/httpd/conf.d/git.conf
<VirtualHost *:81>
    ServerName localhost.localdomain
    DocumentRoot /home/redmine/grack/public
    PerlLoadModule Apache::Redmine
    PerlLoadModule Authen::Simple::LDAP
    <Directory /home/redmine/grack/public>
        Options None
        AllowOverride None
        Require all granted
    <Location "/">
        AuthType Basic
        AuthName "Redmine git repositories" 
        AuthUserFile /dev/null
        AuthBasicAuthoritative off
        Require valid-user
        PerlAccessHandler Apache::Authn::Redmine::access_handler
        PerlAuthenHandler Apache::Authn::Redmine::authen_handler
        RedmineDSN "DBI:Pg:database=redmine;host=localhost;port=5432" 
        RedmineDbUser "redmine" 
        RedmineDbPass "brlight" 
        RedmineGitSmartHttp yes

We are having serious difficulties in diagnosing the problem that is occurring, because the only error output we have is the one displayed in the "error_log".

This error seems strange to us because the module "" is being loaded and present in CentOS 7...

[root@hostname ~]# cat /etc/httpd/conf.modules.d/00-base.conf
LoadModule auth_basic_module modules/

What is going on?

NOTE: Some sources report that this may be occurring due an update from Apache/httpd 2.2 to 2.4.

Thank you! =D

Ruby implementation and version, rails version, operating system, database used (and its version), ruby-aware server, etc...

[redmine@redmine ~]$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
[redmine@redmine ~]$ rails --version
Rails 4.2.6
[root@redmine ~]# cat /etc/*-release
CentOS Linux release 7.8.2003 (Core)
NAME="CentOS Linux" 
VERSION="7 (Core)" 
ID_LIKE="rhel fedora" 
PRETTY_NAME="CentOS Linux 7 (Core)" 


CentOS Linux release 7.8.2003 (Core)
CentOS Linux release 7.8.2003 (Core)
[root@redmine ~]# /usr/pgsql-10/bin/postgres --version
postgres (PostgreSQL) 10.13

Ruby-aware Server: Webrick
Redmine Version: 3.3.0