1. 基础用户论证:
在httpd.conf中增加下面这段字:
<Location /svn>
DAV svn
SVNParentPath E:/Repository
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile "D:/wamp/bin/apache/apache2.2.8/bin/authfile"
Require valid-user
</Location>
其中的authfile是由apache的htpasswd.exe命令生成的用户信息文件
2. 分组管理
httpd.conf修改如下:
<Location /svn>
DAV svn
SVNParentPath E:/Repository
AuthzSVNAccessFile "E:/Repository/VtigerCRM/conf/authz"
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile "D:/wamp/bin/apache/apache2.2.8/bin/authfile"
Require valid-user
</Location>
authz文件内容如下:
[groups]
# harry_and_sally = harry,sally
admin = xzhujc,robert
# [/foo/bar]
# harry = rw
# * =
[VtigerCRM:/]
robert=r
xzhujc=rw
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
用户都是使用apache的htpasswd增加的