When using the Subversion, the authentication file AuthzsvnAccessFile can control the permissions of each directory, but there are fewer documents, less Chinese documents. The method is explained below by instance.
Environment Windows 2003 Server, LAN, Domain: Domain.com.cn
Apache
2.0.52
Subversion
1.1.0
TortoiseSVN
1.1.0
LanguagePack_
1.1.0
_ZH_CN
example:
Repository is stored in D: / Repository, there are two repository: test and xtest
Each replandory has the same structure:
Root: 01.txt
02.txt
Folder 1-: 11.txt
12.txt
Folder 2-: 21.txt
22.txt
Different read and write permission controls for catalog 1 and 2
Basic Authentication
Modify the file:
Httpd.conf:
#Basic authentication
DAV SVN
SvnParentPath D: / repository
AuthzsvnaccessFile D: / repository / accessfile
Require Valid-User
Authtype Basic
Authname "Authentication"
Authorfile D: / repository / passwd
Location>
Generate username and password with Apache's HTPASSWD,
Htpasswd -c passwd username
The second time no -c is available.
The generated username and password are in Passwd:
0: $ APR1 $ VU5 ..... $ xz / csz / 2ykopnkpb88o5p0
1: $ APR1 $ VU5 ..... $ i1vwmj7jtrmpmjjvult4h1
2: $ APR1 $ DV5 ..... $ VF2MTG / P0MY.WCFHX7wet1
3: $ APR1 $ TV5 ..... $ GFK4AIP49H0JJKN8BUJDB.
AuthzsvnaccessFile controls read and write permissions for each directory
[TEST: /]
1 = R
2 = r
3 = R
[Test: / 1]
1 = rw
[Test: / 2]
2 = rw
On the client, you can access it with http: // server / repository / test. You can also enter the subdirectory directly: http: // server / repository / test / 1, http: // Server / repository / test / 2. The system will require certification. For example, user 1 has read and write permissions on the directory 1, can be commit, but the modification of the directory 2 cannot be commit.
SSPI certification.
Press a way that users must change a password file with a password. With SSPI certification, there is no such problem.
Httpd.conf file:
#Sspi automation
DAV SVN
SvnParentPath D: / repository
AuthzsvnaccessFile D: / repository / accessfilesspi
Require Valid-User
Authtype SSPI
Authname "Subversion Repositories"
# Sspi settings
SSPIAUTH ON
SSPIAUTHORITATIVE ON
# Point to DomainController
SSPIDOMain Domain.com.cnsspiofferbasic on
Location>
Control file authzsvnaccessfile To make a corresponding modification:
[TEST: /]
Domain / user1 = r
Domain / administrator = r
[Test: / 1]
Domain / user1 = rw
[Test: / 2]
Domain / user1 =
Domain / administrator = rw
When using TortoiseSVN, you will be prompted, fill in the username and password.