Re: Can I disable directory listing using mod_dav_svn?
From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 20 Nov 2008 14:03:56 -0500
Well, you can setup Apache with it's own users. This is setup via a
See: <http://svnbook.red-bean.com/en/1.5/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authn.basic>
In the past, I've written PHP scripts that allow users to setup and
You have to be careful about what would happen if more than one user
That would handle what you're trying to do.
-- David Weintraub qazwart_at_gmail.com On Wed, Nov 19, 2008 at 4:27 PM, Griffith, Michael * <Michael.Griffith_at_fda.hhs.gov> wrote: > 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?(objectClass=*)" > # 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, --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-11-20 20:04:19 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.