[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: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-08-20 20:58:43 CEST

* solo turn <soloturn@gmail.com> [2004-08-20 10:35]:
> we restricted access to our svn repository via apache and the
> AuthzSVNAccessFile directive.
>
> how can we reach that these access rights do also apply when exposing
> the repository with viewcvs?

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>

-- 
Michael W. Thelen
A satirist is a man who discovers unpleasant things about himself and then
says them about other people.
                -- Peter McArthur

Received on Fri Aug 20 21:00:32 2004

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