[Trac] Problem with a authentication in a multi-project install...

Jean-Baptiste Tréglos jtreglos at pixelvivant.com
Wed Jul 5 11:58:50 CDT 2006


Hi everyone,

    This is my first post to this mailing-list. I have a multi-project 
system that works fine, with the different Trac projects available at 
urls like this one : mydomain/trac/myproject.

    Now, I would like to secure this so that only client of project1 can 
access it, and he shouldn't even be able to see the other projects. I've 
looked a bit at the TracPermission stuff, but it seems that I can't 
block all access to the Trac for anonymous users... So I would like to 
do this using Apache basic authentication, with one <LocationMatch> 
directive in my Apache .conf file and a separate .htpasswd file for each 
project. I'm using Apache 2.0.55 on a Linux (Ubuntu) server, via 
mod_python. I actually have the directives shown in the Wiki for 
multi-project install. In fact, all I would need is a way in the 
<LocationMatch> directive to be able to "use" the pattern "catched" and 
make the AuthUserFile path with it.

    Dunno if I'm very clear... Anyway, if someone either knows how to 
completely block access to the Trac for anonymous users, or knows how to 
have each project have its own AuthUserFile, I'm listening ! :)

Jean-Baptiste Tréglos
jtreglos at pixelvivant.com


More information about the Trac mailing list