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

Re: WebDAV permissions file...

From: David Kramer <david_at_thekramers.net>
Date: 2004-10-29 18:47:07 CEST

On Thu, 28 Oct 2004, BRM wrote:

> I'm working on setting up a repository using WebDAV. I
> noticed in the documentation that it supports a file
> for use by mod_authz_svn to grant permissions based on
> particular folders within the repository. (Cool)
>
> What I am wonder (and this might be a stupid question)
> is, can I specify a group like a user? For example, is
> the following valid:
>
> [groups]
> win_developer = sally
> world_developer = harry
> developers = @win_developer, @world_developer

If I were in your shoes, based on what others have said so far here, I
would create the config file just like that and write a dozen-line program
in the string-friendly language of your choice to preprocess it into what
you need whenever the groups change. That is the path to the least amount
of ongoing admin work until the software can do this on its own

In pseudocode:
read a line
does it have (@word)?
        yes: replace @word with hashtable[word]
does it have (word) = (words)?
        yes: store hashtable[word]=words
print line

----------------------------------------------------------------------------
DDDD David Kramer david_at_thekramers.net http://thekramers.net
DK KD
DKK D Python is executable pseudocode
DK KD Perl is executable line noise
DDDD Bruce Eckel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 29 18:47:47 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.