error connecting to svn redmine
Added by Pedro Javier Espinosa Duque over 12 years ago
I have a problem by following the steps indicated here
http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
I stay in step
Testing the configuration:
After reloading apache conf, you can try to browse some repository with:
svn ls http://my.svn.server/svn/myproject
Any non-public repository should ask for a username and password.
The server connects well with Redmine SVN for MYSQL
and throws me the following error
Connect Access denied for user 'redmine'@'IP-Address' (using password: YES)
----
/Redmine.pm line 236, <DATA> line 522.\n
DBI connect('database=databasename;host=IP-Address','redmine',...) failed: Access
denied for user 'redmine'@'IP-Address' (using password: YES) at
/usr/lib/perl5/Apache/Redmine.pm line 410
do not know how to fix it.
Thanks in advance
dav_svn.conf
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath "/srv/svn"
SVNListparentPath on
SVNAutoversioning On
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"
SSLRequireSSL
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
Allow from IP-Address
Allow from IP-Address 2
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
## for mysql
#RedmineDSN "DBI:mysql:database=namedatabase;host=IP-Address"
RedmineDbUser "user"
RedmineDbPass "******"
</Location>