Project

General

Profile

Bazaar repository access control with apache

Added by Carlos Vásquez over 13 years ago

Hi,

I am trying to do something similar to this with bzr: http://www.redmine.org/wiki/1/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

I have my redmine running with the Apache Passenger module, I have setup the apache location for /bzr using that howto as a guide. Right now when I enter to that location, Apache keeps asking me for an username and a password. I have tried with the "svn" config in there to have read-only public access and I have also tried with the "git" config to separate /bzr from /bzr-private. I have created a user in my test installation, I have a project marked as public and a repository with some dummy revisions. Everything else is working fine, but I can't get this to work.

This is my apache config:

Alias /bzr /srv/bzr

PerlLoadModule Apache::Redmine
<Location /bzr>
    DAV on

    AuthType Basic
    Require valud-user
    AuthName "Bazaar" 

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

    RedmineDSN "DBI:Pg:dbname=redmine_db;host=localhost" 
    RedmineDbUser "redmine" 
    RedmineDbPass "redmine_pass" 
</Location>

Alias /bzr-private /var/bzr

<Location /bzr-private>
    Order deny,allow
    Deny from all
    <Limit GET PROPFIND OPTIONS REPORT>
        Options Indexes FollowSymLinks MultiViews
    Allow from 127.0.0.1
    </Limit>
</Location>

Any help would be greatly appreciated.


Replies (3)

RE: Bazaar repository access control with apache - Added by Felix Schäfer over 13 years ago

You can't access /bzr directly, the authentication thing will only authenticate and authorize on /bzr/$PROJECT_IDENTIFIER, provided the corresponding project exists and so on.

RE: Bazaar repository access control with apache - Added by Carlos Vásquez over 13 years ago

Thank you Felix. I am trying with /bzr/test (being test a project on redmine with a repository correctly created by redmine in /bzr/test). Still doesn't work.

Thank you.

RE: Bazaar repository access control with apache - Added by Mario Luzeiro over 12 years ago

Any news about it?
Any one have some working example?

    (1-3/3)