Stefan Sperling <stsp <at> apache.org> writes:
>
> On Thu, Jan 10, 2013 at 12:56:47PM +0000, Raghu GS wrote:
> > Hello Everybody
> >
> > How can i block access to sub folders in svn for repository members ?
> > I have tried "membername =" and "*=" (without quotes)
> > parameters in svnauthz file.
> >
> > I have also tried "require user membernane" in
> > /etc/httpd/conf.d/svn.conf
> > All the procedures i have tried didn't work.
>
> What doesn't work? Please be more specific.
>
> Are you trying to list the repository? With svn or with a browser?
>
> Are you trying check out from the repository? Commit to the repository?
>
> Which URLs are you using during testing? Please be precise here.
> Simple typing errors can often lead to the impression that authz
> doesn't work.
>
> > Please consult the pastebin links given below to know my configuration.
> >
> > 1) http://pastebin.com/1X71kM9P (/etc/httpd/conf.d/svn.conf)
> > 2) http://pastebin.com/2xhN3pcc (/srv/svn/config/svnauthz.conf)
> > 3) CentOS 5.x, subversion v1.6.11
>
> This is not showing a complete configuration.
>
> Did you load mod_authz_svn into Apache HTTPD? This is required for
> authz to work in the first place. Your HTTPD configuration snippet
> doesn't show whether or not you're loading the mod_authz_svn module.
>
> You're using SVNPath so you don't need to prefix paths in the authz
> rules with the repository name (Production:).
> See http://svnbook.red-bean.com/en/1.7/svn.serverconfig.pathbasedauthz.html
> which says:
> If you're using the SVNParentPath directive, it's important to specify
> the repository names in your sections. If you omit them, a section such
> as [/some/dir] will match the path /some/dir in every repository. If
> you're using the SVNPath directive, however, it's fine to only define
> paths in your sections—after all, there's only one repository.
>
>
Hi Stefan
Thanks for your detailed reply.
Preventing project members from
committing code to unauthorized folders works.
But couldn't prevent svn members from
accessing unauthorized sub folders in svn doesn't work
I have shared a sub set of apache svn configuration file.
We have a perfectly working mod_authz setup.
Only the access control for subfolders in same svn repository
is not working.
Thanks for pointing out the svnpath thingy.
I'll go through it and get back to you.
Received on 2013-01-10 15:03:07 CET