[Trac] Re: Trac, Apache, and Subversion with Multiple Projects
Noah Kantrowitz <
kantrn@...>
2007-11-01 12:46:16 GMT
One solution is to use AccountManager to do authentication for Trac,
with mod_auth_acctmgr doing it for subversion.
--Noah
On Nov 1, 2007, at 12:23 AM, rjcarr wrote:
>
> I'm sure this has been asked many times before, and is in a doc
> somewhere, but all I found was this (and it didn't quite answer my
> questions):
>
> http://trac.edgewall.org/wiki/TracMultipleProjectsSVNAccess
>
> I have an active multi-project environment for trac+svn served by
> apache. It all works fine and in my apache config files I have block
> pairs like this:
>
> <Location "/trac/project1">
> AuthType Basic
> AuthName "Trac Auth"
> AuthUserFile /path/to/project1/auth.htpasswd
> Require valid-user
> </Location>
>
> <Location "/svn/project1">
> AuthType Basic
> AuthName "SVN Auth"
> AuthUserFile /path/to/project1/auth.htpasswd
> Require valid-user
> </Location>
>
> As you see, each project (trac+svn) has (and needs) its own auth
> file. As I said, this works, but the problem is each time a new
> project is added, an apache restart is needed (as far as I know).
> This isn't convenient so I'm looking for a better solution.
>
> I've come across mod_authz_svn and the AuthzSVNAccessFile for
> Subversion, which looks like it will solve my problem (assuming this
> file is checked when updated). I'd like to get it working for Trac as
> well, preferably using the same file, but I'm not entirely sure how to
> do it (and the above mentioned wiki doesn't go into details).
>
> I found this useful thread, and along with the wiki, seems to indicate
> what I'm looking for is possible, but it talks about making special
> additions to trac.ini (authz_file and authz_module_name):
>
> http://groups.google.com/group/trac-users/browse_thread/thread/d8278f7217b12008/7cc8b8aefcf0349f
>
> Where can I find a complete reference about setting up an environment
> as I describe?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---