Project

General

Profile

Problems with git-server with http authentication

Added by Uli B over 4 years ago

hi,

i'm trying to integrate git into redmine. I'm using redmine 4.1.1 installed in a lxc container with debian buster.
i followed pretty much this two tutorials: https://docs.bitnami.com/installer/how-to/configure-advanced-integration-git-redmine/
and https://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

i added and enabled a git.conf file for the apache server:

Listen 81
<VirtualHost *:81>
    ServerName git.redmine4
    PassengerEnabled on
    PassengerAppRoot "/var/www/html/grack/" 
    DocumentRoot "/var/www/html/grack/public" 
    <Directory "/var/www/html/grack//public">
        Options None
        AllowOverride None
        <IfVersion < 2.3 >
        Order allow,deny
        Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
        Require all granted
        </IfVersion>
    </Directory>

    PerlLoadModule HTML::Redmine

    <Location "/">
       DAV on
       AuthType Basic
       AuthName "Redmine git repositories" 
       Require valid-user
       AuthUserFile /dev/null

       PerlAccessHandler Apache::Authn::Redmine::access_handler
       PerlAuthenHandler Apache::Authn::Redmine::authen_handler
       RedmineDSN "DBI:Pg:dbname=redmine;host=localhost" 
       RedmineDbUser "redmine" 
       RedmineDbPass "pass" 
       RedmineGitSmartHttp yes
     </Location>

</VirtualHost>

i'm able to connect to the gitserver without the authentication.

But with authentication i'm not able to connect.
i'm able to enter the username and my password of my redmine user. But after that i get following errors on the client side: Authentifizierung fehlgeschlagen für 'http://10.0.3.99:81/android/'

in the log of the apacheserver i get following error: [Tue Aug 04 19:25:42.796139 2020] [auth_basic:error] [pid 9276:tid 140121412196096] [client 10.0.3.1:41632] AH01618: user theblackraven not found: /android/info/refs

i think it's possible to connect to the database (postgresql), because with wrong entries i get authentication errors in the error.log of apache2

The redmineuser theblackraven is a developer of the project and the repository is added to the project.
the repository and the commits are visible in the project and it's a bare git.