[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: authz conf file & multiple repositories

From: Mauro Gatti <mauro.list_at_yahoo.com>
Date: Thu, 1 Apr 2010 04:42:13 -0700 (PDT)

Mark, you are right!
I added the final "/" and I can see the root directory.

Thanks Again

Regards

Mauro

________________________________
From: "Cooke, Mark" <mark.cooke_at_siemens.com>
To: users_at_subversion.apache.org
Cc: Mauro Gatti <mauro.list_at_yahoo.com>
Sent: Thu, April 1, 2010 1:10:21 PM
Subject: RE: authz conf file & multiple repositories

Hello Mauro,

> I'm using a multiple repositories configuration of subversion.
> If I don't use the authz conf file I can browse the list of
> repositoris (allowen in http.conf with directive
> SVNListParentPath On).
> If I use authz conf file apache le tme access only to
> different repositories but not to the "index" list of them.
> Is it possible to both use authz file and see the list of
> repositories?
>
Yes, I do. If I remember correctly, the issue is with how you configure
apache for your sites and if you use the slash on the end of the path.
Excerpts from my working configuration follow:

<Location /svn/department1/>
    DAV svn
    SVNIndexXSLT "/subversion/svnindex.xsl"
    SVNParentPath D:/svn/department1/
    SVNListParentPath On
    # restrict access to subversion repository paths...
    AuthzSVNAccessFile D:/svn/department1/svn-users.txt
</Location>

...I have multiple ParentPath repo-groups using different <Location>s.
The important bit was using the '/' at the end of the location string so
that you can grant (at least) read permission in your AuthzSVNAccessFile
for the root directory:

# Give all authenticated users read access to the root
# NB: use "* = " for all [repo:/] sections to remove access
[/]

I hope that helps!

~ Mark C

      
Received on 2010-04-01 13:42:43 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.