Documentation

Subversion

Install Subversion

# install --owner www-data --group www-data --mode 0770 -d /opt/svn/tools
# touch /etc/apache2/svn.conf /etc/apache2/svn.bak
# chown www-data /etc/apache2/svn.conf /etc/apache2/svn.bak

The apache hub site configuration files are preconfigured to support this. Subversion repositories are generated dynamically by the addrepo script (installed later) and are included through the /etc/apache2/svn.conf file. URLs matching !^/tools/[^/]+/svn($|/) excluded from being processed by the CMS and are instead directly handled by the Subversion Apache module.

Test

# svnadmin create /opt/svn/tools/test --fs-type fsfs
# chown -R www-data.www-data /opt/svn/tools/test
# echo "<Location /tools/test/svn>
        DAV svn
        SVNPath /opt/svn/tools/test
        AuthType Basic
        AuthBasicProvider ldap
        AuthName "Test"
        AuthzLDAPAuthoritative on
        AuthLDAPGroupAttributeIsDN on
        AuthLDAPGroupAttribute owner
        AuthLDAPGroupAttribute member
        AuthLDAPURL ldap://localhost/ou=users,dc=myhub,dc=org
        Require ldap-group gid=apps,ou=groups,dc=myhub,dc=org
</Location>" > /etc/apache2/svn.conf
# /etc/init.d/apache2 restart

Be sure to the BASEDN in the above to match that used by your configuration.

Now browse to "/tools/test/svn" using an https connection and you should get prompted for a username and password, use the apps account you created earlier when you installed LDAP. You should see "svn - Revision 0: /".

Delete test file.

# echo "" > /etc/apache2/svn.conf
# rm -fr /opt/svn/tools/test
# /etc/init.d/apache2 restart

Last modified:

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®