Check this out.
Make sure you have Apache installed first
Example of the directive we use where I work:
LoadModule dav_svn_module modules/mod_dav_svn.so
<Location /<your_desired_url>>
DAV svn
SVNPath <ph. path to repo>
SVNReposName "anything can go here"
AuthType Basic
AuthName "anything can go here"
AuthBasicProvider ldap
AuthLDAPBindDN "CN=XXX,CN=XXX,DC=XXX,DC=XXX"
AuthLDAPBindPassword "the_pwd_of_the_above"
AuthLDAPURL "ldap://1.2.3.4:3268/DC=XXX,DC=XXX?sAMAccountName?sub?" NONE
Require valid-user
#Require ldap-group CN=XXX,CN=XXX,DC=XXX,DC=XXX
</Location>
The last line, the commented one (#) can be used to require that only users from some group can commit or read the repository.