The amazing adventures of Doug Hughes

Recently in upgrading some of our systems, we moved all of our Trac sites and SVN repositories over to a single server running the latest versions of Trac and SVN. Now most of these sites and repositories are for client projects and are therefore secure. A couple of the SVN repositories are for open source projects however – Reactor being one of them. Therefore, we need to allow anonymous read access and here lies the issue. The SVN repositories are running the latest version of Subversion (1.4.5) on a Windows server and being served via the latest release of Apache (2.2.6). We are attempting to use the mixed authentication example shown in the SVN book (http://svnbook.red-bean.com/en/1.4/svn-book.html#svn.serverconfig.httpd.auth z.perdir.ex-3) to allow anonymous access based upon rules in an Authz rules file. However, as many have found out, the user is always being prompted to log in to the repository.So, are there any SVN/Apache gurus out there who can look at this configuration and see what is obviously missing or possibly suggest something else to go check?

Authz Rules

[Reactor:/]
*=r
@reactor-contrib = rw

** There are no global, non-repository specific rules defined in this file.

Virtual Host Configuration

<VirtualHost *:80 >
	ServerName svn.reactorframework.com
	DocumentRoot e:/svn/Reactor
	Alias / e:/svn/Reactor

	<Location / >
		DAV svn
		SVNParentPath e:/svn/Reactor

		# access control
		AuthzSVNAccessFile e:/svn/svn.rules

		# try anonymous access first, resorting to real authentication if necessary.
		Satisfy Any
		Require valid-user

		#how to authenticate a user
		AuthType Basic
		AuthName "Reactor Subversion Repository"
		AuthUserFile e:/svn/svn.pass
	</Location>
</VirtualHost>

Comments on: "Calling all SVN/Apache Gurus – Reactor needs your help!" (2)

  1. Jeff,

    You will have to specify an altenate rule that allows anybody to access the directory in your location defenition.
    Try this:

    DAV svn
    SVNParentPath e:/svn/Reactor

    # access control
    AuthzSVNAccessFile e:/svn/svn.rules

    #how to authenticate a user
    AuthType Basic
    AuthName “Reactor Subversion Repository”
    AuthUserFile e:/svn/svn.pass
    Require valid-user
    Order allow,deny
    Allow from all
    Satisfy Any

    You will also have to define the “@reactor-contrib” group in the “AuthzSVNAccessFile” file. Use something like:

    @reactor-contrib = mike, jeff ….

    Good luck.

    Like

  2. hey mate,

    to allow anonymous read replace your Require valid-user with:

    # require authentication
    [LimitExcept GET PROPFIND OPTIONS REPORT]
    Require valid-user
    [/LimitExcept]

    (replace with gt and lt signs of course)

    Cheers

    Like

Comments are closed.

Tag Cloud

%d bloggers like this: