<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Liút &#187; svn</title>
	<atom:link href="https://liut.cc/blog/tag/svn/feed" rel="self" type="application/rss+xml" />
	<link>https://liut.cc/blog</link>
	<description>about PHP, PostgreSQL &#38; FreeBSD</description>
	<lastBuildDate>Fri, 31 Dec 2010 15:59:29 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.1</generator>
	<item>
		<title>Subversion+Apache2+Auth_LDAP</title>
		<link>https://liut.cc/blog/2007/05/subversion-apache2-auth_ldap.html</link>
		<comments>https://liut.cc/blog/2007/05/subversion-apache2-auth_ldap.html#comments</comments>
		<pubDate>Thu, 10 May 2007 07:39:00 +0000</pubDate>
		<dc:creator><![CDATA[Liút]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://liut.cc/wp/index.php/2007/05/subversionapache2auth_ldap/</guid>
		<description><![CDATA[Subversion+Apache2+Auth_LDAP 2006-08-03 09:54 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 &#8220;Subversion&#8221; 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# [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="line">
</div>
<div class="tit">
Subversion+Apache2+Auth_LDAP</div>
<div class="date">
2006-08-03  09:54</div>
<p>vf# cd /usr/ports/www/apache2<br />
vf# make install clean WITH_LDAP_MODULES=yes<br />
vf# cd /usr/ports/devel/svn<br />
vf# make insall clean WITH_MOD_DAV_SVN=yes<br />
也可以加上WITH_SVNSERVE_WRAPPER=yes</p>
<p><location><br />
DAV svn<br />
SVNParentPath /home/svn<br />
Options Indexes FollowSymLinks<br />
AllowOverride None<br />
order allow,deny<br />
allow from all<br />
AuthType basic<br />
AuthName &#8220;Subversion&#8221;<br />
AuthLDAPURL ldap://localhost:389/ou=People,o=example?uid?sub?(objectClas<br />
s=*)<br />
#貌似必须使用uid（默认值），我只好给每个认证用户加了objectClass=uidObject<br />
AuthLDAPBindDN cn=readonly,o=expamle<br />
AuthLDAPBindPassword read@Example<br />
AuthLDAPGroupAttributeIsDN on<br />
require valid-user</p>
<p></location></p>
<p>参考：http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html</p>
<p>vf# mkdir /home/svn<br />
vf# chown -R www:www /home/svn<br />
vf# pw add group svn<br />
vf# vi /etc/group<br />
add www to group svn<br />
vf#chgrp -R svn /home/svn<br />
vf# chmod -R g+w /home/svn</p>
<p>update: 200704</p>
<p>cat bin/svncreate.sh<br />
#!/bin/sh</p>
<p>SVNADM=&#8221;/usr/local/bin/svnadmin&#8221;<br />
SVNROOT=&#8221;/home/svnroot&#8221;</p>
<p>if [ ! -f $SVNADM ]; then<br />
exit;<br />
fi</p>
<p>if [ -z $1 ]; then<br />
echo &#8220;Usage: $0 ProjectDirectory&#8221;<br />
exit;<br />
fi</p>
<p>if [ ! -d $SVNROOT ]; then<br />
exit 1;<br />
fi</p>
<p>cd $SVNROOT</p>
<p>svnadmin create $1<br />
chown -R www:www $1</p>
]]></content:encoded>
			<wfw:commentRss>https://liut.cc/blog/2007/05/subversion-apache2-auth_ldap.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
