Install SVN with Ldap Authentication Ubuntu 14.04.


1.    Install Ubuntu 14.04

2.    Update OS

sudo apt-get update


3.    Install Apache

sudo apt-get install apache2


4.    Install Subversion

sudo apt-get install subversion libapache2-mod-svn libapache2-svn libsvn-dev


5.    Enable  dav_svn in Apache

sudo a2enmod dav

sudo a2enmod dav_svn

sudo service apache2 restart


6.    Enabling ldap module 

sudo a2enmod ldap

sudo a2enmod authnz_ldap

sudo a2enmod headers

sudo service apache2 restart


7.    Create new repo & Change ownership of the repo

sudo svnadmin create /3TB/sepg

sudo chown -R www-data:root /3TB/sepg


8.    Provide authz file access.

sudo vim /3TB/sepg/conf/authz


[/]

manager = rw


save and exit


9.    Configure LDAP setting

sudo vim /etc/apache2/mods-available/dav_svn.conf


<Location /sepg>

    DAV svn

    SVNPath /3TB/sepg

    SVNIndexXSLT "/svnindex.xsl"

    AuthBasicProvider ldap

    AuthLDAPUrl ldap://192.168.2.2:389/ou=Users,dc=gc-solutions,dc=net

#    AuthzLDAPAuthoritative off

    AuthType basic

    AuthzSVNAccessFile /3TB/sepg/conf/authz

    AuthName "Central Repository For sepg"

 #   AuthUserFile /etc/subversion/passwd

    Require valid-user


Save and exit


10.    Restart Apache

sudo /etc/init.d/apache2 restart