Project

General

Profile

unable to authenticate against Redmine DB using Redmine.om (SVN)

Added by Anonymous over 8 years ago

Hi guys,

i have the following problem:

if i try to add svn support to redmine (http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl) i am not able to authenticate against the redmine db.

svn co <Server>/svn/helpsvn --username robalste

[auth_basic:error] [pid 10647] AH01618: user robalste not found: /svn/helpsvn
[access_compat:error] [pid 10647]  AH01797: client denied by server configuration: svn:/home/user/svndata/repos/helpsvn

If i try the same command on the svn-server it works (bc the SVN-Server is whitelisted in the apache/subversion.conf)

My configfile "/etc/httpd/conf.d/subversion.conf"

PerlLoadModule Apache::Redmine
PerlLoadModule Apache::DBI
<Location /svn>
        DAV svn
        SVNParentPath "/home/user/svndata/repos" 
        SVNListParentPath on
        Order deny,allow
    Allow from localhost
    Allow from 127.0.0.1
        Deny from all
        Satisfy any
        LimitXMLRequestBody 0
        SVNPathAuthz on
        PerlAccessHandler Apache::Authn::Redmine::access_handler
        PerlAuthenHandler Apache::Authn::Redmine::authen_handler
        AuthType Basic
        AuthName "Redmine SVN Repository" 
          AuthUserFile /dev/null

        Require valid-user
        RedmineDSN "DBI:mysql:database=redmine;host=localhost:3306" 
        RedmineDbUser "user" 
        RedmineDbPass <Password>
</Location>

I am using an CentOS 7.1 and a Redmine 3.0.3


Replies (4)

RE: unable to authenticate against Redmine DB using Redmine.om (SVN) - Added by Anonymous over 8 years ago

Sorry, forget to attach bin/about

~# bin/about

sh: darcs: Command not found.
sh: cvs: Command not found.
sh: bzr: Command not found.
Environment:
  Redmine version                3.0.3.stable
  Ruby version                   2.2.2-p95 (2015-04-13) [x86_64-linux]
  Rails version                  4.2.1
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.7.14
  Mercurial                      2.6.2
  Git                            1.8.3.1
  Filesystem                     
Redmine plugins:
  no plugin installed

RE: unable to authenticate against Redmine DB using Redmine.om (SVN) - Added by Pavel Potcheptsov over 8 years ago

Have you made this step:

You first need to copy or link Redmine.pm to /usr/lib/perl5/Apache/Redmine.pm

?

RE: unable to authenticate against Redmine DB using Redmine.om (SVN) - Added by Anonymous over 8 years ago

Yes, i linked Redmine.pm to /usr/lib64/perl5/vendor_perl/Apache/Redmine.pm

 /usr/lib64/perl5/vendor_perl/Apache/Redmine.pm -> /home/user/redmine/extra/svn/Redmine.pm

if i unlink Redmine.pm i am not able to restart apache

 Can't locate Apache/Redmine.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 2) line 2.\n

So i guess it is the correct link path.

RE: unable to authenticate against Redmine DB using Redmine.om (SVN) - Added by Pavel Potcheptsov over 8 years ago

This is what we actually use and this config works fine on CentOS.

LoadModule    dav_svn_module    modules/mod_dav_svn.so
LoadModule    rpaf_module    modules/mod_rpaf-2.0.so
#LoadModule authz_svn_module   modules/mod_authz_svn.so
RPAFenable on
RPAFproxy_ips 127.0.0.1
PerlLoadModule Apache::Redmine
SVNAllowBulkUpdates Prefer
<Location /svn>
    DAV svn
    SVNParentPath "/mnt/svn" 
    #SVNListParentPath on
    Order deny,allow
    Deny from all
    Satisfy any
    SetOutputFilter DEFLATE
    LimitXMLRequestBody 0
    SVNPathAuthz off
    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler
    AuthType Basic
    AuthName "Redmine SVN Repository" 
    <Limit GET PROPFIND OPTIONS REPORT>
    Require valid-user
    Allow from ip_of_redmine_host
    #Allow from 127.0.0.1
    Satisfy any
    </Limit>
    <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
    </LimitExcept>
    RedmineDSN "DBI:mysql:database=redmine;host=mysql.domain.com" 
    RedmineDbUser "redmine" 
    RedmineDbPass "redmine" 
</Location>

[root@redmine ~]# apachectl -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 authn_anon_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_default_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 expires_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 autoindex_module (shared)
 dav_fs_module (shared)
 dir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 perl_module (shared)
 dav_svn_module (shared)
 rpaf_module (shared)
Syntax OK

Hope this help.

    (1-4/4)