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

svn/apache user access/auth setup

From: bruce <bedouglas_at_earthlink.net>
Date: 2005-04-20 20:33:54 CEST

hi..

getting closer!!!

i'm setting up svn with apache2.0.52, fedora core 2.

if i simply use AuthUserFile, then i can get a user/passwd dialog,
restricting access to the project/repository.

if i add the AuthzSVNAccessFile, then i get into a situation where i get the
user/passwd dialog, but even after entering the correct information, the
dialog keeps being displayed... i can provide the username/passwd multiple
times, and then i get a 404 'Authorization Required' error page.

i'm using the http/apache access method --> http://foo.com/proj. in this
case, i'm using the 'forge' project.

my httpd.conf looks like
--------------------------------------

#
# forge project dav client
# b douglas, this works - at least to get access...
#
<VirtualHost 192.168.1.52:80>
  ServerName forge1.gotdns.com
# ServerAlias forge1.gotdns.com

  #for forge
  <Location /forge>
     DAV svn
     SVNPath /gforge-svn/forge/svn

     #access control policy file
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

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

  #for jupiter
  <Location /jupiter>
     DAV svn
     SVNPath /gforge-svn/jupiter/svn

     #access control policy file
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

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

  #for troy
  <Location /troy>
     DAV svn
     SVNPath /gforge-svn/troy/svn

     #access control policy file
     AuthzSVNAccessFile /gforge-svn/svn-accesspolicy

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

</VirtualHost>

the SVN access file is
--------------------------------------
[root@lserver2 viewcvs-dev]# cat /gforge-svn/svn-auth
test:$apr1$0yabb...$.G6v9LFShq9Bs6ofG7mel.

the SVN auth file is:
--------------------------------------
[root@lserver2 viewcvs-dev]# cat /gforge-svn/svn-accesspolicy
#the access policy file for the NWA Ventures projects
#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 =

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

any ideas as to what's causing the issues i'm seeing?

any comments/help/thoughts would be helpful....

Bruce Douglas
(925) 249-1844
(925) 846-1062 (h)
bedouglas@earthlink.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 20 20:41:00 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.