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

Re: [ViewCVS] setting up viewcvs for auth/access

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-04-20 15:49:30 CEST

"bruce" <bedouglas@earthlink.net> writes:

> i can use http:/foo.com/testsvn and get the user/passwd dialog for the svn
> repository. i also get the user/passwd prompt using the command line svn
> functions...
>
> however, i'm not sure as to how i have to setup the viewcvs.conf/httpd.conf
> files in order to get the viewcvs app to display the user/passwd dialog...

If you are using straight Apache directives for
authentication/authorization with your Subversion setup, then it
should be a trivial task to use those same directives for ViewCVS.

For example, something like the following (not fully tested, I'm just
a-typin' in email here):

   ### My Subversion repositories
   <Location /svn>
       SVNParentPath /usr/local/svn
       DAV svn
       AuthName "Subversion Repository"
       AuthType basic
       AuthUserFile /usr/local/svn-passwords
       Require valid-user
   </Location>

   ### My ViewCVS (uses the same password file as Subversion)
   ScriptAlias /viewcvs /usr/local/viewcvs-1.0-dev/www/cgi/viewcvs.cgi
   <Location /viewcvs>
       AuthName "Subversion Repository"
       AuthType basic
       AuthUserFile /usr/local/svn-passwords
       Require valid-user
   </Location>

If, however, you are using something more complicated (like
mod_authz_svn, etc.), then this might not work out so well.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 20 15:57:15 2005

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.