vf# cd /usr/ports/www/apache2
vf# make install clean WITH_LDAP_MODULES=yes
vf# cd /usr/ports/devel/svn
vf# make insall clean WITH_MOD_DAV_SVN=yes
也可以加上WITH_SVNSERVE_WRAPPER=yes
DAV svn
SVNParentPath /home/svn
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
AuthType basic
AuthName “Subversion”
AuthLDAPURL ldap://localhost:389/ou=People,o=example?uid?sub?(objectClas
s=*)
#貌似必须使用uid(默认值),我只好给每个认证用户加了objectClass=uidObject
AuthLDAPBindDN cn=readonly,o=expamle
AuthLDAPBindPassword read@Example
AuthLDAPGroupAttributeIsDN on
require valid-user
参考:http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html
vf# mkdir /home/svn
vf# chown -R www:www /home/svn
vf# pw add group svn
vf# vi /etc/group
add www to group svn
vf#chgrp -R svn /home/svn
vf# chmod -R g+w /home/svn
update: 200704
cat bin/svncreate.sh
#!/bin/sh
SVNADM=”/usr/local/bin/svnadmin”
SVNROOT=”/home/svnroot”
if [ ! -f $SVNADM ]; then
exit;
fi
if [ -z $1 ]; then
echo “Usage: $0 ProjectDirectory”
exit;
fi
if [ ! -d $SVNROOT ]; then
exit 1;
fi
cd $SVNROOT
svnadmin create $1
chown -R www:www $1
RSS