Project

General

Profile

Basic question: apache authentication

Added by Thomas Oppelt over 16 years ago

Hi guys,

i'm sure it's quiet simple, i set wothin vhost conf:
PerlRequire /usr/lib/apache2/Redmine.pm
<Location /svn>
DAV svn
SVNParentPath "/var/svn"

AuthType Basic
Authname "Redmine Project Tracking"
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 xxx
PerlSetVar db_pass xxx
&lt;/Location&gt;

as mentioned within documentation.
After restarting apache i am prompted for a username and password on /svn ... ok.
But which usernam/pwd to use here?
I tried admin/admin and 2 other users i already created within redmine through WEBrick server connection wehre everything works fine.

thx & regards
tom


Replies (3)

RE: Basic question: apache authentication - Added by Anonymous over 16 years ago

Do you mean the xxx in "PerlSetVar db_user xxx" and "PerlSetVar db_pass xxx"?

These username/passwords are the ones for the (mysql) redmine database. The perl script goes directly to the database table to check the authentication info (which you are prompted for).

Best,
Hans-Peter

RE: Basic question: apache authentication - Added by Thomas Oppelt over 16 years ago

Eeeeh, Ok, i in fact hat a typo within admin pwd...but now if i set it correct in got an Internal Server Error, error log says:
"Can't call method "prepare" on an undefined value at /usr/lib/apache2/Redmine.pm line 149."
Seems that it can't connect to database but i have no idea why...tried host=localhost host=127.0.0.1 nothing helps.
DB Server is on localhost.
Any hints again?

thx & regards
tom

RE: Basic question: apache authentication - Added by Thomas Oppelt over 16 years ago

Sorry, total confusion:
if i set db_user and db_pass correct, he prompts me for username/password.
but if i insert here a valid user from redmine users table i can't get in.
forget my last post.

    (1-3/3)