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

Can I disable directory listing using mod_dav_svn?

From: Griffith, Michael * <Michael.Griffith_at_fda.hhs.gov>
Date: Wed, 19 Nov 2008 16:27:19 -0500

Hello everyone,
 
I am using SVN 1.5.4, configured to use web dav /Apache 2.2 using
mod_dav_svn. I don't want to expose the entire repository to just
anyone that has the URL, but instead want my users to register and agree
to usage terms before being able to check out code from the repository.
 
Is there any way to disable directory listings for mod_dav_svn? I tried
adding Options -Indexes to the location, but that did not work.
 
My configuration looks like this:
 
## SVN Repository Location
<Location /svn/repos>
   Options -Indexes
   DAV svn

   # Directory containing all repository for this path
   SVNPath /home/subversion/repos
   
   AuthType Basic
   AuthName "SVN Repository"
   AuthBasicProvider ldap
   AuthzLDAPAuthoritative on

  # This is an Active Directory user account
  AuthLDAPBindDN cn=####,dc=###,dc=####
 
  # This is the password for the AuthLDAPBindDN user in Active Directory
  AuthLDAPBindPassword #####
 
  # The LDAP query URL
  #AuthLDAPURL
"ldap://your.domain:389/DC=your,DC=domain?sAMAccountName?sub?(objectClas
s=*)"

  # Require authentication for this Location
  Require valid-user
</Location>
 
The authentication works well against LDAP -- is there a way to control
the directory access via a DB select? For instance after the user has
registered with me and agreed to usage I will add their user id to a
list and they would then be permitted to get the source code using a SVN
co command? I want to handle this all pragmatically. The only thing I
was able to find was this:
http://svnbook.red-bean.com/en/1.5/svn.serverconfig.pathbasedauthz.html
-- which is not quite what I want to do...
 
If you've read all of this -- thank you! Any help would be appreciated.
 
Thanks in advance,
Received on 2008-11-19 22:27:49 CET

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.