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

Re: Getting SVNParentPath and AuthzSVNAccessFile to play together?

From: Jim Sokoloff <jim_at_sokoloff.com>
Date: 2004-01-23 17:59:43 CET

On Fri, 23 Jan 2004, Tim Armes wrote:

> >Note that nothing stops you from sharing the htpasswd and authz access
> >files across multiple SVNPath entries in httpd.conf. (That's what we're
> >doing and it does exactly what you want, except for having an overly
> >specific and long httpd.conf file.)
>
> Can someone explain how to do this please. I have a httpd.conf file with
> projects in:
[snip]
> I'm forced to have a separate access file for each project, since each
> access file must use / as the root for each project. Here's
> uiaccessfile.txt:
>
> [groups]
> ui_developers = dev1,dev2,dev3
> [/]
> * =
> @ui_developers = rw
>
> Ideally, my access file would have each project in as you describe:
>
> [groups]
> ui_developers = dev1,dev2,dev3
> [/ui]
> * =
> @ui_developers = rw
> [/test]
> * = rw
>
> But since I'm using SVNPath, I can't do that. How have you managed it?

we happened to not have that particular conflict, but you can use a
macro processor to get you what you want (of course, you've correctly
ID'd that you need multiple authz files).

*** file uiaccess.groups.m4 ***
[groups]
ui_developers = dev1,dev2,dev3
*** EOF ***

*** file uiaccess.ui.m4 ***
include(`uiaccess.groups.m4')dnl
[/]
*=
@ui_developers = rw
*** EOF ***

*** file uiaccess.test.m4 ***
include(`uiaccess.groups.m4')dnl
[/]
*=rw
*** EOF ***

And then:
% m4 uiaccess.test.m4 > uiaccess.test
% m4 uiaccess.ui.m4 > uiaccess.ui

With a little more work, you can get it all into one file,
but I'm not an m4 expert...

It's not as nice as it would be if authz supported ParentPath,
but it's not terrible either.

--Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 23 18:00:50 2004

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.