1.
SVN加入LDAP(CentOS DS)設定方式
假設LDAP為 dc=tpe, dc=abc, dc=com,上有一OU為fae
vi /etc/httpd/conf.d/subversion.conf
<Location /svn/>
DAV svn
SVNParentPath /usr/local/svn/
SVNListParentPath On
AuthzSVNAccessFile /etc/httpd/conf.d/svnaccess
AuthzLDAPAuthoritative off
AuthType Basic
AuthBasicProvider ldap
AuthName “tpe.abc.com 2″
AuthLDAPURL “ldap://localhost/ou=fae,DC=tpe,DC=abc,DC=com?uid”
Require valid-user
</Location>
2.新增一專案,ex: pandora
cd /usr/local/svn/
svnadmin create pandora
chown -R apache:apache pandora
3.設定權限,使用LDAP account/password
vi /etc/httpd/conf.d/svnaccess
[groups]
fae = daniel.lin,sam.wang,jeff.fang
[/]
* =
daniel.lin = rw
[pandora:/]
daniel.lin = rw