Project

General

Profile

Authentication failing

Added by Alessandro B over 15 years ago

Hi all,
I have succefully set up a Redmine project, but for some reason my configuration doesn't work with the svn authentication.

PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath “/svn”
AuthType Basic
AuthName svn
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN “DBI:mysql:database=dbname;host=localhost”
RedmineDbUser “myusername”
RedmineDbPass “mypass”
</Location>

It keeps on prompting the login window over and over.

My subversion client shows this to me:

svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn' authorization failed (http://mydomain.com)

after the fourth time the login window shows up.

We can successfully login into the redmine project but not browse the svn repository through apache.

What's wrong with that configuration?

I would appreciate any help

Greetings,
Alessandro

linux Centos 5.2 Redmine 0.8


Replies (18)

RE: Authentication failing - Added by Tobias Schröder over 15 years ago

Hi there,

same problem with my system.
I tried to separate the SVN-Server via eth0:0 to another IP-Address.
My Redmine Host ist X.X.X.117 the SVN-Server is on X.X.X.118 with virtual hosts.

Greetings
Tobi

---------------
Ubuntu 8.04 LTS server, redmine 0.8 stalbe (svn)

RE: Authentication failing - Added by Alessandro B over 15 years ago

PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath “/directory Proget”
AuthType Basic
AuthName svn
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN “DBI:mysql:database=dbname;host=localhost”
RedmineDbUser “root”
RedmineDbPass “password”
</Location>
It keeps on prompting the login window over and over.

My subversion client shows this to me:

svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn' authorization failed (http://mydomain.com)

after the fourth time the login window shows up.

We can successfully login into the redmine project but not browse the svn repository through apache.

What's wrong with that configuration?

I would appreciate any help

Greetings,
Alessandro

linux Centos 5.2 Redmine 0.8

RE: Authentication failing - Added by Tim Klein over 15 years ago

i had the same issue
I fixed it by using:

apt-get install libauthen-simple-ldap-perl libio-socket-ssl-perl

and restarting apache

RE: Authentication failing - Added by Alessandro B over 15 years ago

k hours can log the error but because:

Page not found

The page you were trying to access does not exist or has been removed.

I can enter with eclipse but I says: Page not found

How come I do not read the repository?

Centos 5.2 Redmine 0.8 stable

RE: Authentication failing - Added by Tim Klein over 15 years ago

just spent about two night trying to get it running

it seems not to be possible to have redmine as root and svn as subfolder sharing the same vhost.
When you have a look in the redmine log files you can see that it is trying to handle /svn/ - but cant find it.

I ended up using anoher vhost (subdomain) for subversion...

hope that helps

RE: Authentication failing - Added by Alessandro B over 15 years ago

Http://www.tracdev.eu/ my site, I put a repository empty but when I go with my eclipse error:

svn: PROPFIND request failed on '/svn'
svn: PROPFIND of '/svn' authorization failed

this configuration and subversion.conf:

<VirtualHost *:80>
ServerName http://svn.tracdev.eu
DocumentRoot /repo
PerlLoadModule Apache::Redmine
<Location /java>
DAV on
AuthType Basic
Require valid-user
AuthName "java"
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
RedmineDbUser "root"
RedmineDbPass "password"
</Location>
</VirtualHost>

svn login appears but does not accept the login?
I tried to create a dominiodi 3 livv but not served and the problem continues
please help me

RE: Authentication failing - Added by Tim Klein over 15 years ago

keep in mind to have

DAV svn
and
SVNParentPath “/dir/”

in your conf

you need to have a repository that your user is allowed to access.
ie
http://svn.tracdev.eu/java/someproject/

you need to assign the user in redmine with the right permissions ie 'developer'

RE: Authentication failing - Added by Alessandro B over 15 years ago

PerlLoadModule Apache::Redmine
<Location /svn/java>
DAV svn
SVNParentPath "/repo/java
AuthType Basic
Require valid-user
AuthName "l2nova"
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
RedmineDbUser "rooot"
RedmineDbPass "pass"
</Location>
I have configured as you suggested. svn login appears but does not accept registered user on redmine.

I gave permission to the administrator but the same can not access

RE: Authentication failing - Added by Tim Klein over 15 years ago

which url are you tring to access?

RE: Authentication failing - Added by Alessandro B over 15 years ago

I tried both on domain redmine http://www.tracdev.eu/, is creating a 3-level domain http://svn.tracdev.eu/
In both cases I can not sign. And as if not legesse database Select to update the correspondence between users Redmine and those in the log repository.
Users Redmine and repository with the same username or email is automatically mapped. perhaps you create a file where you need to read to reading accesses eclipse?
What do you think!

RE: Authentication failing - Added by Alessandro B over 15 years ago

<VirtualHost 62.149.197.246:*>
ServerAdmin
ServerName http://svn.tracdev.eu/
PerlLoadModule Apache::Redmine
<Location /repo/java>
DAV svn
SVNParentPath "/repo/java"
AuthType Basic
Require valid-user
AuthName "java"
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
RedmineDbUser "User"
RedmineDbPass "Pass"
</Location>
ErrorLog /home/log_httpd/svn.tracdev.eu-error_log
</VirtualHost>

this is the configuration on subversion.conf

RE: Authentication failing - Added by Tim Klein over 15 years ago

you must have the repo in your url

there is no general access...

RE: Authentication failing - Added by Tim Klein over 15 years ago

and you probably wanna change the location path to <Location />

RE: Authentication failing - Added by Alessandro B over 15 years ago

I did some testing and this is the result, I configuration sub version without a password and log in without problems. I tried to read directly from the mysql and apache can log. The problem is in the package to install imagine, you can tell me all the packages to install for CentOS 5.2 please thanks.

Config Mysql- Apache ok login
<VirtualHost myhost>
ServerName http://svn.tracdev.eu
DocumentRoot /redmine
<Location /redmine
DAV svn
SVNPath /repo/redmine
SVNListParentPath off
AuthName "Repository"
AuthType Basic
AuthMYSQLEnable on
AuthMySQLDB redmine
AuthMySQLUser myuser
AuthMySQLPassword mypass
AuthMySQLPwEncryption sha1
AuthMySQLUserTable users
AuthMySQLNameField login
AuthMySQLPasswordField hashed_password
require valid-user
</Location>
<VirtualHost myhost>

Config pubblic repository login on

<Location /redmine>
DAV svn
SVNPath /repo/redmine
SVNListParentPath off
</Location>
config redmine mysql not login

</Location>
PerlLoadModule Apache::Redmine
<Location /redimine>
DAV svn
SVNParentPath "/repo/redmine"
AuthType Basic
Require valid-user redmine
AuthName "java"
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
RedmineDbUser "myuser"
RedmineDbPass "mypass"
</Location>
</VirtualHost>

Reads the database but does not log anyone help me please

RE: Authentication failing - Added by Alessandro B over 15 years ago

I followed several guides but I can not make automatco log of svn with redmine help me please, I am desperate. thanks

config redmine mysql not login

</Location>
PerlLoadModule Apache::Redmine
<Location /redimine>
DAV svn
SVNParentPath "/repo/redmine"
AuthType Basic
Require valid-user redmine
AuthName "java"
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine;host=localhost"
RedmineDbUser "myuser"
RedmineDbPass "mypass"
</Location>
</VirtualHost>
centos 5.2 - redmine 8.1

RE: Authentication failing - Added by Rolf Wojtech about 14 years ago

I had a similar problem as Alessandro (Apache prompting for password all the time) and I figured out my stupid mistake by taking a look at the Redmine.pm source code:
in order to access the SVN of a private project, a user has to be a member of the project in question.
Being new to redmine I had only set up a few "hello world" projects but not bothered to add users.

I just thought I'd add this here in case anybody else stumbles upon this problem.

RE: Authentication failing - Added by cro m over 13 years ago

Just a quick THANK YOU to Rolf for this timely post. I had sweated over this stupid ommission for hours and was just about to code trace through redmine.pm when I came across this post. It would be a useful 'gotcha' addition to add to here: http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl?version=24#Testing-the-configuration

because I can't believe I'm the only one...or maybe I am! ;-)

Cheers again,
Crom

RE: Authentication failing - Added by Rolf Wojtech over 13 years ago

You're very welcome. Just pay it forward, whenever you solve an issue that others might have a well, post it ;)
And thanks for taking the time to let me know it helped, I always love reading notes like yours weeks or months later, shows that I didn't waste my time.

    (1-18/18)