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

user access/auth question/issue...

From: bruce <bedouglas_at_earthlink.net>
Date: 2005-04-26 21:06:53 CEST

hi...

in setting up gforge4/ViewCVS/SVN to deal with multiple projects where i
need tobe able to have directory specific access, i've devised the
following. i'm not sure if it's the best way, so i'm putting it out to the
gforge/ViewCVS/SVN lists.

my site domain, and scm domain are the same.

everything, at least for now seems to work. my question, are there better
ways to accomplish what i'm setting up...

thanks

bruce

--------------------------------------------------------------------
i have the following httpd.conf sections:
# HTTP
<VirtualHost 192.168.1.52:80>
        ServerName dev1.gotdns.com
        #ServerName gforge.mesa.com
        #ServerAlias app1.gotdns.com
        ServerAdmin webmaster@gforge.mesa.com
        DocumentRoot /var/www/gforge/www

<Directory /var/www/gforge/www>
  Options Indexes FollowSymlinks
  AllowOverride All
  order allow,deny
  allow from all
  php_admin_value include_path
"/var/www/gforge/etc/custom:/var/www/gforge:/var/www/gforge/www/include:."
  php_admin_value default_charset "UTF-8"
  php_admin_value register_globals "On"
</Directory>

        Alias /images/ /var/www/gforge/www/images/
        DirectoryIndex index.html index.php
        <IfModule mod_userdir.c>
                UserDir disabled
        </IfModule>

        php_admin_value default_charset "UTF-8"

        <Directory /var/www/gforge/www>
                Include /var/www/gforge/etc/httpd.secrets
        </Directory>

        ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*)
/usr/lib/gforge/plugins/$1/cgi-bin/$2

        # Projects and Users script
        <Location /projects>
                ForceType application/x-httpd-php
        </Location>
        <Location /users>
                ForceType application/x-httpd-php
        </Location>

  <Location /plugins/scmsvn/cgi-bin/viewcvs.cgi/forge>
     SVNPath /gforge-svn/forge/svn
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

     AuthType Basic
     AuthName "Forge Repository"
     AuthUserFile /gforge-svn/svn-auth
     Require valid-user
  </Location>

  <Location /plugins/scmsvn/cgi-bin/viewcvs.cgi/jupiter>
     SVNPath /gforge-svn/jupiter/svn
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

     AuthType Basic
     AuthName "Forge Repository"
     AuthUserFile /gforge-svn/svn-auth
     Require valid-user
  </Location>

  <Location /plugins/scmsvn/cgi-bin/viewcvs.cgi/troy>
     SVNPath /gforge-svn/troy/svn
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

     AuthType Basic
     AuthName "Forge Repository"
     AuthUserFile /gforge-svn/svn-auth
     Require valid-user
  </Location>

        # 404 Error document
        ErrorDocument 404 /404.php
        LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
# CustomLog "|/usr/sbin/cronolog
/var/www/gforge/var/log/#gforge/%Y/%m/%d/gforge.log" gforge

        # GForge without the DNS delegation
        # Project home pages are in a virtual /www/<group> location
        AliasMatch ^/www/([^/]*)/(.*) /home/groups/$1/htdocs/$2
        ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /home/groups/$1/cgi-bin/$2
        <Directory /home/groups>
                Options Indexes FollowSymlinks
                AllowOverride All
                order allow,deny
                allow from all
        </Directory>

        # Ensure that we don't try to use SSL on SSL Servers
        <IfModule apache_ssl.c>
                SSLDisable
        </IfModule>
</VirtualHost>

------------------------------------------------
the viewcvs project locations are:

            athena: /gforge-svn/athena/svn,
            troy: /gforge-svn/troy/svn,
            mars: /gforge-svn/mars/svn,

----------------------------------------------
the auth file is:

#in the forge repository
#

#group designations
[groups]
forge-developers = test
jupiter-developers =
troy-developers =

#project designations
[forge:/]
test = rw

[forge:/branches]
test =

[jupiter:/branches]
test = rw

[troy:/]
test =

--------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 26 21:14:23 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.