SVN Apache LDAP configuration

Apache Configuration

Create a Apache configuration file for Subversion

# vi /etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module     modules/
LoadModule authz_svn_module   modules/

  # Enable Subversion
    DAV svn

  # Directory containing all repository for this path
    SVNParentPath			/opt/svn/
    SVNAutoversioning			on

  # LDAP Authentication & Authorization is final; do not check other databases
    AuthBasicProvider			ldap
    AuthzLDAPAuthoritative		off

  # Do basic password authentication in the clear
    AuthType				Basic

  # The name of the protected area or "realm"
    AuthName				"Subversion Repository"

  # The LDAP query URL
    AuthLDAPURL				"ldap://:389/dc=example,

  # Require authentication for this Location
    Require valid-user