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

Question about multiple paths and multiple password files

From: Todd Nine <todd.nine_at_gmail.com>
Date: 2006-07-29 19:59:51 CEST

I've read the Apache configuration in the redbook, and a have a question
that is not addressed in the doc. I currently use my configuration below, I
also use trac to manage my projects. Trac uses an htpassword for
authentication, I would like to link each repository to my trac htpassword.
They have a one to one relationship /data1/trac/reposa uses subversion
repository /data1/svn/reposa. Is it possible to link the svn authentication
to the trac /data1/trac/reposa/trac.htpasswd using the SVNParentPath, or do
I need to define multiple directives in my Apache configuration. See the
example below for a clearer explanation. Thanks for the help.

Todd

Current repository directories

/data1/svn/reposa -
/data1/svn/reposb

Current directive

<Location /svn>
   DAV svn
   SVNParentPath /data1/svn

   # Require SSL connection for password protection.
   SSLRequireSSL

   AuthType Basic
   AuthName "Nine Consulting Subversion Access"
# Can I define multiple files here based on the url?
   AuthUserFile /data1/trac/smokskis/trac.htpasswd
   # Limit write permission to list of valid users.

   Require valid-user
   #<LimitExcept GET PROPFIND OPTIONS REPORT>
   #</LimitExcept>
</Location>

Only other option I can think of

Each with its own definition, and this is duplicated with "reposa" replaced
with "reposb"

<Location /svn/reposa>
   DAV svn
   SVNPath /data1/svn/reposa

   # Require SSL connection for password protection.
   SSLRequireSSL

   AuthType Basic
   AuthName "Nine Consulting Subversion Access"
# Can I define multiple files here based on the url?
   AuthUserFile /data1/trac/reposa/trac.htpasswd
   # Limit write permission to list of valid users.

   Require valid-user
   #<LimitExcept GET PROPFIND OPTIONS REPORT>
   #</LimitExcept>
</Location>
Received on Sat Jul 29 20:01:14 2006

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