Subversion and LDAP

Subversion and LDAP#

We will not attempt to replicate the already excellent documentation that is a available on the subject of SVN.

The documentation we consult most of the time is http://svnbook.red-bean.com/

We will show a couple of quick configurations we have used.


We will assume you have subversion installed and working.

Our Quick Command Reference#

We have a short subversion reference where we show some simple quick commands.

Apache Web Server Subversion Configuration#

We have LDAP set up on the Apache Web server already so the proper modules for LDAP are already loaded elsewhere.

Due to the many different configurations for Apache Web Server, we will just say that these modules must be loaded before you make a references to the svn configuration.

LoadModule dav_svn_module 								/usr/lib64/apache2/mod_dav_svn.so
LoadModule authz_svn_module    					/usr/lib64/apache2/mod_authz_svn.so

Subversion configuration#

<Location /svn >
  DAV svn
  SVNPath /srv/svn/repos
	SVNListParentPath on 
	order allow,deny
	allow from all
	AuthName "AdminRequired"
        AuthType Basic
        AuthBasicProvider ldap
	AuthzLDAPAuthoritative on
	AuthLDAPURL "ldap://sa.willeke.com:389/ou=People,dc=willeke,dc=com?cn?sub?(objectClass=inetOrgPerson)"
	AuthLDAPBindDN  "cn=svnProxy,ou=administration,dc=willeke,dc=com"
	AuthLDAPBindPassword "secret"
	Require ldap-attribute dictcRole=svn