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

Re: access control: viewcvs

From: solo turn <soloturn_at_gmail.com>
Date: 2004-08-25 04:42:32 CEST

On Mon, 23 Aug 2004 15:19:58 -0600, Michael W Thelen
<thelenm@cs.utah.edu> wrote:
> * Ben Reser <ben@reser.org> [2004-08-23 10:49]:
> > > Use the exact same authorization mechanism. For example, something like this:
> > >
> > > # Subversion repository
> > > <Location /svn>
> > > DAV svn
> > > SVNPath /path/to/repos
> > > AuthType Basic
> > > AuthName "Subversion Repository"
> > > AuthUserFile /usr/local/apache2/conf/svn-auth
> > > Require valid-user
> > > AuthzSVNAccessFile /usr/local/apache2/conf/svn-access
> > > </Location>
> > >
> > > # ViewSVN
> > > ScriptAlias /viewsvn /path/to/viewcvs.cgi
> > > <Location /viewsvn>
> > > SVNPath /path/to/repos
> > > AuthType Basic
> > > AuthName "ViewSVN"
> > > AuthUserFile /usr/local/apache2/conf/svn-auth
> > > Require valid-user
> > > AuthzSVNAccessFile /usr/local/apache2/conf/svn-access
> > > </Location>
> >
> > Huh? Will that actually work? mod_authz_svn's primary purpose is to
> > decode the special URLs we use into a fashion that can do path based
> > authorization.
>
> Works for me... because it's in a <Location> block, I think the path being
> accessed looks exactly the same to mod_authz_svn whether it's being accessed
> via /svn or /viewsvn (i.e. both http://example.com/svn/foo and
> http://example.com/viewsvn/foo require authorization to access /foo in the
> repository at /path/to/repos).

how would you handle this with parentPaths?

e.g.:
http://example.com/cgi-bin/viewcvs.cgi/trunk/?root=rep1
which i can change via dropdown to:
http://example.com/cgi-bin/viewcvs.cgi/trunk/?root=rep2

httpd.conf contains:
<Location /svn>
   DAV svn
   SVNParentPath /path/to
   AuthType Basic
   AuthName "Subversion Repository"
   AuthUserFile /usr/local/apache2/conf/svn-auth
   Require valid-user
   AuthzSVNAccessFile /usr/local/apache2/conf/svn-access
</Location>

viewcvs.conf ocntains:
root_parents = /path/to : svn

another thing:
did you also revoke the permission to access /path/to/viewcvs.cgi url?

-solo.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 25 04:43:10 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.