Advertisement

05.07.2008 at 08:48AM PDT, ID: 23383216
[x]
Attachment Details

How do I setup Subversion security?

Asked by jojuez in Subversion, Windows 2003 Server

Tags: Subversion, Subversion, 1.4.3, Restricting users based on Repository

I need to restrict certain users to certain repositories. I am running subversion on a windows server. I have a group of developers for which I need to restrict access to certain repositories. I have found this can be accomplished by the use of the authz file. However, I cannot seem to properly configure it. Below are the examples of my config files. Whenever I try to use the authz file I get a authorization failed when I use Tortoise. If I comment out the authz in the conf file I have no issues getting in, however, then everyone has access to every repository. Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
Passwd file:
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the 
### example below it contains one section labelled [users]. 
### The name and password for each user follow, one account per line.  
 
[users]
 
Jim = password
jake = password
johnny = password
julian = password
 
svnserve.conf:
### This file controls the configuration of the svnserve daemon, if you
 ### use it to allow access to this repository.  (If you only allow 
### access through http: and/or file: URLs, then this file is 
### irrelevant.)   
### Visit http://subversion.tigris.org/ for more information. 
  
[general]
 
### These options control access to the repository for unauthenticated 
### and authenticated users.  Valid values are "write", "read", 
### and "none".  The sample settings below are the defaults. 
anon-access = none 
auth-access = write 
### The password-db option controls the location of the password 
### database file.  Unless you specify a path starting with a /, 
### the file's location is relative to the conf directory. 
### Uncomment the line below to use the default password file. 
password-db = passwd 
### The authz-db option controls the location of the authorization 
### rules for path-based access control.  Unless you specify a path 
### starting with a /, the file's location is relative to the conf 
### directory.  If you don't specify an authz-db, no path-based access 
### control is done. 
### Uncomment the line below to use the default authorization file. 
authz-db = authz 
### This option specifies the authentication realm of the repository. 
### If two repositories have the same authentication realm, they should 
### have the same password database, and vice versa.  The default realm 
### is repository's uuid. 
# realm = My First Repository
 
AUTHZ:
### This file is an example authorization file for svnserve.
 ### Its format is identical to that of mod_authz_svn authorization
### files. 
### As shown below each section defines authorizations for the path and 
### (optional) repository specified by the section name. 
### The authorizations follow. An authorization line can refer to a 
### single user, to a group of users defined in a special [groups] 
### section, or to anyone using the '*' wildcard.  Each definition can 
### grant read ('r') access, read-write ('rw') access, or no access 
### (''). 
  
[groups] 
devel = Jim, jake 
admin = johnny 
market = julian  
 
# [/foo/bar] 
# harry = rw 
# * =
 
[repository:svn://172.16.18.19/development]
 @devel = rw 
@admin = rw 
@market =
 # * = r
 
[repository:svn://172.16.18.19/marketing]
 @devel =
@admin = rw
@market = rw
[+][-]05.08.2008 at 02:25PM PDT, ID: 21528612

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Subversion, Windows 2003 Server
Tags: Subversion, Subversion, 1.4.3, Restricting users based on Repository
Sign Up Now!
Solution Provided By: jojuez
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628