SVN problem - user not found
Added by alan woolley over 14 years ago
Hi,
I've followed the HowTos on how to setup SVN repository creation and my repositories are created from my Redmine projects via the provided script fine, however I am struggling to commit any changes to them using authentication from Redmine users.
My project is identified as 'cookie'. This is the error I get on the client when trying to perform a mkdir on the repository:svn: MKACTIVITY of '/svn/cookie/!svn/act/c15b3a54-499c-43b5-b00f-3e7564af6ca8': authorisation failed: Could not authenticate to server: rejected Basic challenge
and in my Apache2 error logs:user admin not found: /svn/cookie/!svn/act/90c85771-bc74-41db-9583-c7e7e3fa1570
I know the request is making its way to the mysql server because I can observe it if I enable logging. If I replicate the query by hand using the same login credentials, I can observe data being returned, so I cannot explain why the user isn't authenticated.
My Apache configuration is as follows:
<VirtualHost *:80> DocumentRoot "/www/svn" ServerName svn.local PerlLoadModule Apache::Redmine <Location /svn> DAV svn SVNParentPath "/var/svn/" Order deny,allow Deny from all Satisfy any PerlAccessHandler Apache::Authn::Redmine::access_handler PerlAccessHandler Apache::Authn::Redmine::authen_handler AuthType Basic AuthName "SVN Repository" Require valid-user AuthUserFile /dev/null #AuthBasicAuthoritative off <Limit GET PROPFIND OPTIONS REPORT> Require valid-user Satisfy any Allow from 127.0.0.1 </Limit> <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> RedmineDSN "DBI:mysql:database=redmine;host=localhost" RedmineDbUser "redmine_db" RedmineDbPass "redmine_pw" </Location>
I found the AuthUserFile /dev/null line was required otherwise I got errors relating to not being able to find a users file - I'm not sure if this is related or this is the correct way to resolve this issue.
Redmine 0.9.3.stable (MySQL)
Server version: Apache/2.2.12 (Ubuntu)
svn, version 1.6.5 (r38866)
I've been following the HowTos to the letter near enough and have spent more than a weekend trying to solve this very issue, so any ideas would be greatly appreciated.
Thanks in advance,
Alan
Replies (2)
RE: SVN problem - user not found - Added by alan woolley over 14 years ago
I should add this too:
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /www/ap-projects
Environment development
Database adapter mysql
Database schema version 20100221100219
O/S is Ubuntu 9.10 Server x64.
RE: SVN problem - user not found - Added by alan woolley over 14 years ago
I've done a little bit more work on this and I've found this page which has presented an alternative way to go about it.
I'm pleased to say that so far so good. I'm going to continue testing it to make sure it works as expected, but it's happily accepting valid username and passwords and declining false details with no error messages.
Here is my configuration now:
PerlRequire /usr/lib/perl5/Apache2/Redmine.pm <Location /svntest> DAV svn SVNParentPath "/var/svn" AuthType Basic AuthName "Redmine SVN" Require valid-user PerlAccessHandler Apache::Authn::Redmine::access_handler PerlAuthenHandler Apache::Authn::Redmine::authen_handler #PerlSetVar dsn DBI:mysql:database=redmine;host=localhost #PerlSetVar db_user redmine #PerlSetVar db_pass lolproj RedmineDSN "DBI:mysql:database=redmine;host=localhost" RedmineDbUser "rmuser" RedmineDbPass "rmpass" </Location>