svn-1.4.2-1+apache+ldap
时间:2007-01-16 来源:supersuper
操作系统
rhel4-u4
所需软件包
apr-0.9.12-2.i386.rpm
apr-util-0.9.12-1.i386.rpm
mod_dav_svn-1.4.2-1.i386.rpm
subversion-1.4.2-1.i386.rpm
步骤
安装svn
rpm -Uvh apr-0.9.12-2.i386.rpm
rpm -Uvh apr-util-0.9.12-1.i386.rpm
rpm -ivh subversion-1.4.2-1.i386.rpm
rpm -ivh mod_dav_svn-1.4.2-1.i386.rpm
创建svn库目录
mkdir /var/lib/svn
cd /var/lib/svn
svnadmin create project(code...etc)
chown -R apache.apache *
编辑/etc/httpd/conf.d/subversion.conf文件
# Needed to do Subversion Apache server.
LoadModule dav_svn_module modules/mod_dav_svn.so
# Only needed if you decide to do "per-directory" access control.
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/lib/svn
AuthType Basic
AuthName "Please login"
AuthLDAPEnabled on
AuthLDAPAuthoritative on
AuthLDAPURL "ldap://127.0.0.1/dc=cn?uid?sub?(objectClass=*)"
#AuthzSVNAccessFile /var/lib/svn/accessfile.txt
Require valid-user
</Location>
编辑accessfile.txt权限管理文件
格式如下
[groups]
PM = panglei,cuilei,maguoping,wangtongjun,mayingbo
T2-1 = yangbo,wangzhen,chenxi,caoxu,zhangjing
T3-fast = zhangping
[svn:/]
@PM = rw
* =
[svn:/projects/trunk/JIM]
@PM = rw
@T2-fast = r
@T2-2 = r
[svn:/students/trunk/JIM/T3-1]
@PM = rw
@T3-1 = rw
[svn:/students/personal/lifangming]
@PM = rw
lifangming = rw
rhel4-u4
所需软件包
apr-0.9.12-2.i386.rpm
apr-util-0.9.12-1.i386.rpm
mod_dav_svn-1.4.2-1.i386.rpm
subversion-1.4.2-1.i386.rpm
步骤
安装svn
rpm -Uvh apr-0.9.12-2.i386.rpm
rpm -Uvh apr-util-0.9.12-1.i386.rpm
rpm -ivh subversion-1.4.2-1.i386.rpm
rpm -ivh mod_dav_svn-1.4.2-1.i386.rpm
创建svn库目录
mkdir /var/lib/svn
cd /var/lib/svn
svnadmin create project(code...etc)
chown -R apache.apache *
编辑/etc/httpd/conf.d/subversion.conf文件
# Needed to do Subversion Apache server.
LoadModule dav_svn_module modules/mod_dav_svn.so
# Only needed if you decide to do "per-directory" access control.
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/lib/svn
AuthType Basic
AuthName "Please login"
AuthLDAPEnabled on
AuthLDAPAuthoritative on
AuthLDAPURL "ldap://127.0.0.1/dc=cn?uid?sub?(objectClass=*)"
#AuthzSVNAccessFile /var/lib/svn/accessfile.txt
Require valid-user
</Location>
编辑accessfile.txt权限管理文件
格式如下
[groups]
PM = panglei,cuilei,maguoping,wangtongjun,mayingbo
T2-1 = yangbo,wangzhen,chenxi,caoxu,zhangjing
T3-fast = zhangping
[svn:/]
@PM = rw
* =
[svn:/projects/trunk/JIM]
@PM = rw
@T2-fast = r
@T2-2 = r
[svn:/students/trunk/JIM/T3-1]
@PM = rw
@T3-1 = rw
[svn:/students/personal/lifangming]
@PM = rw
lifangming = rw
相关阅读 更多 +