Project

General

Profile

RE: SVN Authentication failed Solved

Added by Vikramjeet Sra over 12 years ago

I am trying to integrate svn auth with redmine but svn is keep asking the password again and again. here is my config files

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.1/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.1
PassengerRuby /usr/bin/ruby
<VirtualHost mydomain.com:80>
ServerName http://mydomain
DocumentRoot /var/www/html/redmine/public/
ErrorLog logs/redmine_error_log
<Directory "/var/www/html/redmine/public/">
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>
  1. /svn location for users
    PerlLoadModule Apache::Redmine
    <Location /svn>
    DAV svn
    SVNParentPath "/svnrepo/project"
    Order deny,allow
    Deny from all
    Satisfy any
    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler
    AuthType Basic
    AuthName "SVN Repository"
    #read-only access
    <Limit GET PROPFIND OPTIONS REPORT>
    Require valid-user
    Allow from 127.0.0.1
    #Allow from another-ip
    Satisfy any
    </Limit>
  2. write access
    <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
    </LimitExcept>
    1. for mysql
      RedmineDSN "DBI:mysql:database=redmine;host=127.0.0.1"
      RedmineDbUser "redmine"
      RedmineDbPass "password"
      SSLRequireSSL
      </Location>

svn ls http://mydomain/svn gives me this error
authorization failed: Could not authenticate to server: rejected Basic challenge

I tried each and every post given in the redmine forum. Please some one help


Replies (8)

RE: SVN Authentication failed - Added by Vikramjeet Sra over 12 years ago

No one can help :(

RE: SVN Authentication failed - Added by S. Ruttloff over 12 years ago

I guess something goes wrong with the authentication handler Apache::Redmine.
There can be a restriction in your apache configuration. Look into your apache log after you try to access svn by http. May you find any advice.

Redmine and SVN Server Hosting

RE: SVN Authentication failed - Added by Vikramjeet Sra over 12 years ago

Thats the problem apache is not showing any logs

RE: SVN Authentication failed - Added by S. Ruttloff over 12 years ago

Vikramjeet Sra wrote:

Thats the problem apache is not showing any logs

Does it mean you have never ever a apache log or just in this case?

Redmine Hosting and SVN Server

RE: SVN Authentication failed - Added by Vikramjeet Sra over 12 years ago

Apache logs working fine but i cant see anything when i try to access the svn repo

RE: SVN Authentication failed - Added by S. Ruttloff over 12 years ago

I suggest to comment out limit in vhost and try to access by a webbrowser.
If it works, comment in step by step.

But that your logs are empty is very strange.

Let me know if it works and whout you find out.

Redmine Hosting and SVN Server

RE: SVN Authentication failed - Added by M. Zanko over 12 years ago

I had the somewhat similar issue with the same config and working with svn. I could see the emtpy repo through Redmine, but svn login would always fail. After a little digging with MySQL general log i figured it out.
It is important to note that I set up my svn repositories manually through Redmine Settings page (as you are probably doing as well). Anyway, it seems the svn repository name needs to be the same as the project Identifier field in Redmine Project -> Settings -> Identifier tab. This should really be documented...

Example
So for: SVNParentPath "/var/svn"
And manual created svn repository: project_identifier
The Project -> Settings -> Repository URL needs to be: file:///var/svn/project_identifier
(remember, project_identifier is a Project Identifier value in your project settings)

Let us know if it helped you as well.

P.S. Don't forget to add the redmine user to a project and use that user to test the svn...

RE: SVN Authentication failed Solved - Added by Vikramjeet Sra over 12 years ago

I have the identifier same as my repo but it did not work. Just pulling my hairs. I remember i have done it a year back with the same configuration. :(

I got it working the problem was the trailing / was missing from the SVNParentPath

    (1-8/8)