Dashboard > Linux > Subversion SVN and LDAP and Webdav
Linux Log In   View a printable version of the current page.
Subversion SVN and LDAP and Webdav
Added by Brandon Philips, last edited by Alex Polvi on Aug 01, 2005  (view change)
Labels: 
(None)

Work in progress.

References

http://httpd.apache.org/docs-2.0/mod/mod_auth_ldap.html
http://linuxjournal.com/article.php?sid=7655
http://users.757.org/~count/wordpress/index.php?p=138

Configs

<Location /public>
    Dav svn
    # Tell Apache to use Subversion's own module
    # for HTTP's Dav extensions.

    SVNParentPath /data/svn/repository/public
    AuthType basic
    AuthName "LDAP test"
    AuthLDAPEnabled on
    AuthLDAPAuthoritative on
    AuthLDAPURL ldaps://ldap.osuosl.org:636/ou=People,dc=osuosl,dc=org?uid?sub?(objectClass=*)
    require valid-user
</Location>
ln -s /etc/apache2/mods-available/ldap.load /etc/apache2/mods-enabled/

Add to /etc/apache2/apache2.conf

LDAPSharedCacheSize 200000
LDAPCacheEntries 1024
LDAPCacheTTL 700
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 600
LDAPTrustedCA /etc/ldap/ssl/osl-ldap-cacert.pem
LDAPTrustedCAType BASE64_FILE

Include /data/svn/conf/mod_dav_svn.conf

Add to /etc/apache2/ports.conf

Listen 8081
Listen 8080

Proxy

Listen 443
Listen 80

NameVirtualHost *:80
NameVirtualHost *:443

###############################################################################
# svn.osuosl.org

<VirtualHost _default_:80>
    SSLDisable
    ServerName svn.osuosl.org
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

<VirtualHost _default_:443>
    SSLEnable
    ServerName svn.osuosl.org
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

# svn.osuosl.org
###############################################################################

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators