Project

General

Profile

[SOLVED] svn authentication doesn't work

Added by Kraky Dark about 9 years ago

Hi,
My SVN authentification doesn't work. I have

Environment:
  Redmine version                2.5.2.devel
  Ruby version                   2.1.5-p273 (2014-11-13) [i386-linux-gnu]
  Rails version                  4.1.8
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.10
  Darcs                          2.8.5
  Cvs                            1.12.13
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  no plugin installed

My apache configuration is :

<Location /svn>
   DAV svn
   SVNAllowBulkUpdates Prefer
   SVNParentPath "/home/svn" 
 Order deny,allow
   Deny from all
   Satisfy any

   LimitXMLRequestBody 0
   SVNPathAuthz off

   PerlAccessHandler Apache::Authn::Redmine::access_handler
   PerlAuthenHandler Apache::Authn::Redmine::authen_handler
   AuthType Basic
   AuthName "Svn Authentification" 

# Ajout pour authentification via les user de redmine
   AuthUserFile /dev/null
<Limit GET PROPFIND OPTIONS REPORT>
       Require valid-user
       Allow from 127.0.0.1
       Allow from X.X.X.X
       Satisfy any
    </Limit>

        # write access
 <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
    </LimitExcept>

  ## for mysql
   RedmineDSN "DBI:mysql:database=redmine_default;host=127.0.0.1" 
   RedmineDbUser "...." 
   RedmineDbPass "...." 
</Location>

The creation of the svn reposiory works fine with the command line in my crontab :

ruby /usr/share/redmine/extra/svn/reposman.rb  --redmine-host my.domain.com/redmine --svn-dir /home/svn --url http://my.domain.com/svn/ --key=.... --owner www-data

When I want to test the svn with

svn ls http://my.domain.com/svn/test

the authentication doesn't work. I have just the following message on the /var/log/apache2/error.log
[Thu Jan 29 23:59:25.924777 2015] [auth_basic:error] [pid 25531] [client 10.22.9.40:37482] AH01618: user XXX not found: /svn/test-svn

Have you a solution ?

Best regards


Replies (1)

[SOLVED] RE: svn authentication doesn't work - Added by Kraky Dark about 9 years ago

It's work. The problem was from the identifier of my project. The SQL request use the project identifier defined in the configuration of SVN repository.

    (1-1/1)