Project

General

Profile

Authentication using Redmine.pm

Added by Kayode Muyibi about 16 years ago

Hello there i am using this configuration

<VirtualHost  *:80>
ServerName svn.advertfarm.info

PerlRequire /home/advdoc/Redmine.pm

CustomLog /usr/local/apache/domlogs/advdoc/svn.domain.info/access.log combined
ErrorLog /usr/local/apache/domlogs/advdoc/svn.domain.info/error.log
<Location>
DAV svn
SVNPath /home/advdoc/svn
# SVNParentPath /home/advdoc/repo
AuthType Basic
 AuthName redmine
Require valid-user

PerlAccessHandler Apache::Authn::Redmine::access_handler
 PerlAuthenHandler Apache::Authn::Redmine::authen_handler

     ## for mysql
     PerlSetVar dsn "DBI:mysql:database=advdoc_redmine;host=localhost" 
     ## for postgres
     # RedmineDSN "DBI:Pg:dbname=advdoc_redmine;host=localhost" 

    PerlSetVar db_user "**" 
    PerlSetVar db_pass "***" 

   </Location>

</VirtualHost>

I have everything setup, but I have a small issue, It doesnt accept Redmine users, it just denies

I got redmine from

URL: http://redmine.rubyforge.org/svn/branches/0.7-stable

Error if i use: svn ls
svn: PROPFIND of '/': authorization failed

Doesnt show any error in the apache logs when i try authenticating from the browser, and doesnt log me in, it keeps showing the prompt again and again

I would appreciate any direction in getting this fixed. Thank you

I followed the instruction http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

reposman works fine by the way.

(Edit by T. Lecavelier: fix bad paste tags)


Replies (4)

RE: Authentication using Redmine.pm - Added by Kayode Muyibi about 16 years ago

One last detail, I am running redmine on passenger.

RE: Authentication using Redmine.pm - Added by Nicolas Chuche about 16 years ago

Hello,

SVNPath /home/advdoc/svn
  1. SVNParentPath /home/advdoc/repo

Why did you use SVNPath instead of SVNParentPath ?

RE: Authentication using Redmine.pm - Added by Kayode Muyibi about 16 years ago

After changing it and restarting the server, the problem is still there.

RE: Authentication using Redmine.pm - Added by Nicolas Chuche about 16 years ago

Error if i use: svn ls
svn: PROPFIND of '/': authorization failed

Haven't see that the first time. You try to use svn on '/'. You should try with the project name after '/'.

For example :

svn ls http://my.server/myrepospath/myproject

    (1-4/4)