Skip to content

Instantly share code, notes, and snippets.

@jonvargas
Created August 21, 2015 16:25
Show Gist options
  • Save jonvargas/9669a86a942e22e16e1e to your computer and use it in GitHub Desktop.
Save jonvargas/9669a86a942e22e16e1e to your computer and use it in GitHub Desktop.
apache-scm-ldap.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName dev-rcp-scm.alkaid.cr
DocumentRoot /srv/www/scm.recope.net
ErrorLog /var/log/apache2/scm.recope.net-error_log
CustomLog /var/log/apache2/scm.recope.net-access_log "%t %u %{SVN-ACTION}e" env=SVN-ACTION
HostnameLookups Off
UseCanonicalName Off
ServerSignature Off
<Directory "/srv/www/scm.recope.net">
Options Indexes FollowSymLinks
AllowOverride None
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</Directory>
<Location /repos>
DAV svn
SVNParentPath /srv/svn
SVNListParentPath on
SVNIndexXSLT "/repos-web/view/repos.xsl"
SVNReposName "Recope"
AuthzSVNAccessFile /srv/svn/access
AuthType Basic
AuthName "Recope SCM"
#AuthUserFile /srv/svn/users
# Make LDAP the authentication mechanism
AuthBasicProvider ldap
# Active Directory requires an authenticating DN to access records
AuthLDAPBindDN "CN=Administrator,CN=Users,DC=example,DC=com"
# This is the password for the AuthLDAPBindDN user in Active Directory
AuthLDAPBindPassword admin$1234
# The LDAP query URL
AuthLDAPURL "ldap://dc.example.com:389/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)"
#Require all granted
Require valid-user
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment