Calling all SVN/Apache Gurus - Reactor needs your help!
Published By: Jeff Chastain on Oct 10, 2007 at 9:18 AM
Times Viewed: 2174
Categories: Reactor For ColdFusion
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
*=r
@reactor-contrib = rw
Virtual Host Configuration
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>








Jeff,
You will have to specify an altenate rule that allows anybody to access the directory in your location defenition.
Try this:
<Location / >
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
</Location>
You will also have to define the "@reactor-contrib" group in the "AuthzSVNAccessFile" file. Use something like:
@reactor-contrib = mike, jeff ....
Good luck.
Posted By: Raj on Oct 10, 2007
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
Posted By: Rob Gonda on Oct 10, 2007