Project

General

Profile

Redmine.pm will not authenticate

Added by Eric Desgranges about 14 years ago

I keep getting the "Authentication Required" box when I try to access the SVN repository (after entering the right admin's username / password).

No errors in the logs, but I'm sure the script Redmine.pm is well called because if I modify e.g. the RedmineDbUser value, it will complain in the logs.

Here's my config for Apache:

PerlLoadModule Apache::Authn::Redmine
<Location /svn>
     DAV svn
     SVNParentPath "/var/www/source/svn" 
     AuthType Basic
     AuthName "SVN Repository"     
     Require valid-user

     PerlAccessHandler Apache::Authn::Redmine::access_handler
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler

     ## For postgreSQL
     RedmineDSN "DBI:Pg:dbname=redmine-001;host=localhost" 

     RedmineDbUser "redmine-user" 
     RedmineDbPass "er4567dhdsQWasdasw" 
</Location>


Replies (6)

RE: Redmine.pm will not authenticate - Added by Felix Schäfer about 14 years ago

Don't post your password!

2 things: the auth module doesn't care if you're administrator or not, you need explicit permissions on the project's repository. Furthermore, make sure the name of the repository matches the identifier of the project.

RE: Redmine.pm will not authenticate - Added by Eric Desgranges about 14 years ago

Hi Felix,

The password was fake! It's working now after I gave permission the admin to edit the repository.

Now, Redmine is very restrictive as to what is allowed for the identifier of a project, is there a way to make a link with a Mercurial repository name that would be different?

Thank you,
Eric.

RE: Redmine.pm will not authenticate - Added by Felix Schäfer about 14 years ago

Eric Desgranges wrote:

Now, Redmine is very restrictive as to what is allowed for the identifier of a project, is there a way to make a link with a Mercurial repository name that would be different?

Not with the stock Redmine.pm.

RE: Redmine.pm will not authenticate - Added by Eric Desgranges about 14 years ago

Would there be an easy modification to make if I wanted to use the project "name" rather than the project "identifier" for the Mercurial repository name?

RE: Redmine.pm will not authenticate - Added by Felix Schäfer about 14 years ago

Well, you could try to change identifier to name in all the canned queries, but I haven't tested it and can't tell you exactly what would happen. Please also note that the project names aren't required to be unique any more in recent trunk, you might run into conflicts.

RE: Redmine.pm will not authenticate - Added by Eric Desgranges about 14 years ago

It works. I've attached the Redmine.pm modified if someone finds it useful.
Thank you,
Eric.

    (1-6/6)