Project

General

Profile

Subversion authentication against Redmine's built-in database fails

Added by Zackary Baker over 11 years ago

I can’t seem to access our imported subversion repository (imported dump) via https but access within Redmine is fine. I created a test repository and access works both within Redmine and outside via web browser/command line. I've search around and tried various tips but nothing seems to fix the problem.

Imported repository: file:///var/www/svn/repos
(Repos is very large so we are using subdirectories for all the different projects)
svn co https://redmine.myserver.com/svn/repos/trunk/test_images
This will reject login and password.

Newely created repository: file///var/www/svn/repos
svn co https://redmine.myserver.com/svn/test_repos
This will accept login and password

Both above repositories have been added to projects where I am a Manager & Developer. I’m also mapped correctly to both repositories.

This was a new Redmine server running on Centos 6.3 and I followed the following HowTo (but stopping at LDAP_auth)
http://www.redmine.org/projects/redmine/wiki/Redmine_203_with_Subversion_and_LDAP_Authentication_(for_Redmine_and_Subversion_through_Redmine)_on_Centos_6_i386_-_detailed

Environment:
Redmine version 2.2.0.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.9
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed

Subversion.conf
PerlLoadModule Apache::Redmine

<Location /svn>
        DAV svn
        SVNParentPath "/var/www/svn" 
        SVNListParentPath off
        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 "Redmine SVN Repository" 
        Require valid-user

        RedmineDSN "DBI:mysql:database=redmine;host=localhost:3306" 
        RedmineDbUser "redmine" 
        RedmineDbPass "********" 
        RedmineCacheCredsMax 50
</Location>


redmine_error_log
access to /svn/repos/trunk/test_images failed, reason: verification of user id 'myusername' not configured

Replies (2)

RE: Subversion authentication against Redmine's built-in database fails - Added by Tung TK over 9 years ago

Now I've been facing same issue with you. Could you please share the way you fixed?

Thank you very much.

RE: Subversion authentication against Redmine's built-in database fails - Added by Pavel Potcheptsov over 9 years ago

do you have such link?

# pwd
/usr/lib/perl5/vendor_perl/Apache
# ls -la
total 8
drwxr-xr-x  2 root root 4096 Apr  3  2014 .
drwxr-xr-x. 3 root root 4096 Nov 22  2013 ..
lrwxrwxrwx  1 root root   37 Apr  3  2014 Redmine.pm -> /var/www/rm2.4.0/extra/svn/Redmine.pm

    (1-2/2)