Install on centOS 5.3
wget "http://mirror.bit.edu.cn/apache/httpd/httpd-2.2.21.tar.gz" tar zxvf httpd-2.2.21.tar.gz cd httpd-2.2.21 ./configure LDFLAGS="-L/usr/lib64 -L/lib64" --prefix=/opt/httpd-2.2.11 \ --with-ssl=/opt/openssl-0.9.8k --with-mpm=prefork --enable-so \ --enable-mods-shared=all --enable-modules=all --enable-dav --with-ldap \ --enable-ldap --enable-authnz-ldap make make install
subversion 依赖 sqlite3
wget "http://www.sqlite.org/sqlite-autoconf-3071000.tar.gz" tar zxvf sqlite-autoconf-3071000.tar.gz cd sqlite-autoconf-3071000 ./configure make make install
http://authzldap.othello.ch/index.html
wget "http://authzldap.othello.ch/download/mod_authz_ldap-0.28.tar.gz" tar zxvf mod_authz_ldap-0.28.tar.gz cd mod_authz_ldap-0.28 ./configure --with-apxs=/opt/httpd-2.2.11/bin/apxs \ --with-apr=/opt/httpd-2.2.11/bin/apr-1-config \ --with-apu=/opt/httpd-2.2.11/bin/apu-1-config --disable-ssl
wget "http://mirror.bit.edu.cn/apache/subversion/subversion-1.7.2.tar.gz" tar zxvf subversion-1.7.2.tar.gz cd subversion-1.7.2/ ./configure --prefix=/opt/subversion-1.7.2 --with-apxs=/opt/httpd-2.2.11/bin/apxs \ --with-apr=/opt/httpd-2.2.11/bin/apr-1-config \ --with-apr-util=/opt/httpd-2.2.11/bin/apu-1-config \ --without-serf --without-neon --with-sqlite=/usr/local make make install
<Location /repos>
DAV svn
SVNParentPath /d2/repos
SVNListParentPath on
SVNReposName "Search Dep. Subversion Repository"
SVNAutoversioning On
# Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# Require SSL connection for password protection.
# SSLRequireSSL
AuthzSVNAccessFile /d2/repos/subversion/conf/authz
AuthType Basic
AuthName "Please Login.."
# AuthzLDAPMethod ldap
# AuthzLDAPAuthoritative on
# AuthzLDAPServer ldapja.YourDomain.com:389
# AuthzLDAPUserBase "ou=YourDomain,dc=YourDomain,dc=com"
#
# AuthzLDAPUserKey sAMAccountName
# AuthzLDAPUserScope subtree
# AuthzLDAPBindDN ldap@YourDomain.com
# AuthzLDAPBindPassword svn-ldap
AuthzLDAPAuthoritative on
AuthBasicProvider ldap
AuthLDAPBindDN ldap@YourDomain.com
AuthLDAPBindPassword svn-ldap
AuthLDAPURL "ldap://ldapja.YourDomain.com:389/ou=YourDomain,dc=YourDomain,dc=com?sAMAccountName?sub?(objectClass=*)"
require valid-user
</Location>