Re: [viewvc-users] mutiple root_parents and authzfile
Jehan PROCACCIA <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | Telecom et Management SudParis. |
| Message-ID | <4D35A443.3080900__24216.9677898803$1295362266$gmane$org@it-sudparis.eu> |
Le 17/01/2011 18:23, C. Michael Pilato a écrit :
> On 01/14/2011 04:26 PM, procaccia jehan wrote:
>> Hello,
>>
>> I use viewvc-1.1.8 and wonder how to configure it to manage multiple svn
>> roots
>> the root_parents directive seems to work fine, but i cannot find how to
>> configure associated "apache AuthzSVNAccessFile" authz file to viewvc !?
>>
>> here is my actual config
>>
>> [general]
>> root_parents = /var/svn/disi: svn,
>> /var/svn/stud: svn
>> [options]
>> authorizer = svnauthz
>>
>> [authz-svnauthz]
>> authzfile = /var/svn/disi/svnrootauthz
>> authzfile = /var/svn/stud/svnrootauthz
>>
>> Only the latest svnrootauthz works
>>
>> thanks for your help .
> The .ini format which ViewVC uses for its configury doesn't allow for
> multiple lines with a single "key" (the part to the left of the equal sign).
>
> ViewVC internally collapses all the configured roots -- those explicitly
> named in cvs_roots and svn_roots, and those implicitly defined in the
> root_parents bit -- into a single list of roots. Is it possible for you to
> use a single authz file that describes the permissions for all your
> repositories? Alternatively, you could run multiple instances of ViewVC
> which expose different, non-overlapping collections of repositories (perhaps
> organized by parent-path) and which refer only to the authz file that
> applies to the appropriate collection.
>
it's surprising to see that it is possible to have multiple root_parents
as in
[general]
root_parents = /var/svn/disi: svn,
/var/svn/stud: svn
but still unable to define corresponding multiple access (authz) files
to those roots !?
that's why I thought that I missunderstood and misconfigured my
viewvc.conf file.
but if I correctly understand you , having multiple authzfile
corresponding to each root_parents is not possible ?
Alternatively, as you suggested, I tried to use a single authz file for
both roots, but now I get no view of any repository :-( , perhaps, I
missconfigure the concat authz file
here is the situation, I have 2 svn repo roots:
/var/svn/staff
/var/svn/stud
below /var/svn/staff there's a "AuthzSVNAccessFile" (apache
terminology) and dozens of repos like /var/svn/staff/rep1 ,
/var/svn/staff/rep2 etc ...
Identically for /var/svn/stud, /var/svn/stud/root_authz,
/var/svn/stud/rep1 /var/svn/stud/rep2 ...
My /var/svn/super_root_authz pointed by
[authz-svnauthz]
authzfile = /var/svn/super_root_authz
contains repo definitions like that
[staff/rep1:/]
user1 = rw
[staff/rep2:/]
user2 = rw
[stud/rep1:/]
user1 = rw
...
But maybe I missconfigured that super_root_authz ?
thanks for your help
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2698891
To unsubscribe from this discussion, e-mail: [[email protected]].