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

Re: Limit general read-operations to svn-repo

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 14 Sep 2012 23:47:22 +0100

Stefan Bauer wrote on Thu, Sep 13, 2012 at 10:20:06 +0200:
> Dear Users,
>
> We're having around 40 repositories.
>
> I'm trying to limit write access to a specific group per repository
> and all read access to a group. How can i achieve this?
>
> I was able to limit the write operations with:
>
> <Location /svn/install>
> <Limit MERGE MKCOL POST PUT DELETE PATCH PROPPATCH>
> Require ldap-group CN=svn-repo-install-read
> </Limit>
> </Location>
>
>
> But how can i set a general Limit for all repos below /svn/ for
> read? ... is not working:
>
> <LocationMatch /svn/.*>

First of all you probably want to anchor that regex. (use '^')

> Require ldap-group CN=SVN_user
> </LocationMatch>
>
> I would like to have that users prompted for credentials when they
> try to read from repos below /svn and the credentials are checked if
> the user is part of SVN_user.
>

Can't http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html
do what you need ??

> Thank you in advance
>
> Stefan
Received on 2012-09-15 00:47:54 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.