[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Subversion, Radius and Virtual Hosts in apache

From: Andy Brook <andy.brook_at_chp.co.uk>
Date: 2005-05-25 15:42:09 CEST

We're trying to setup subversion via apache on FreeBSD 5.3 using RADIUS
authentication (as MS-IAS is already setup to talk to our active
directory)

 

This config works fine via the web interface but doesn't work from
tortoisesvn (I get a 301 error as per here...
http://subversion.tigris.org/faq.html#301-error )

 

<VirtualHost 10.10.10.1>

  ServerName svn.svr.chp.co.uk

  DocumentRoot /home/svnrepo

  ErrorLog /home/svnrepo/logs/main

  AddRadiusAuth 10.10.10.2:1645 <password> 5:3

  AddRadiusCookieValid 5

  <Location /main>

    DAV svn

    SVNPath /home/svnrepo/main

    AuthType Basic

    AuthName "Active Directory Authentication"

    AuthAuthoritative off

    AuthRadiusAuthoritative on

    AuthRadiusCookieValid 5

    AuthRadiusActive On

    Require Valid-User

    AuthzSVNAccessFile /home/svnrepo/m

  </Location>

</VirtualHost>

 

So I tried changing the document root to... "DocumentRoot
/home/sites/null" which has an empty index.html in file and shouldn't
clash however then I get a 404 error when trying to access
http://svn.svr.chp.co.uk/main/ yet http://svn.svr.chp.co.uk/ works fine.
Tortoise still doesn't work instead giving a 405 error "Method Not
Allowed". If I leave the config as above and take out the
authentication both the web and tortoise work. I'm using
http://www.freeradius.org/mod_auth_radius/

 

Another confusing thing is that there are no error messages in any of
the logs when that 404 appears.

 

If anyone has any idea where I'm going wrong I'd be very grateful, the
eventual aim is to have several different repositories with different
authentication files authenticating against the same radius server on
the same virtual host.

 

Many thanks in advance,

 

Andy Brook

The contents of this communication are not intended to be binding or
constitute any form of offer or acceptance or give rise to any legal
obligations on behalf of the sender or CHP Consulting. The views or
opinions expressed represent those of the author and not necessarily
those of CHP Consulting. This email and any attachments are strictly
confidential and are intended solely for use by the individual or entity
to whom it is addressed. If you are not the addressee (or responsible
for delivery of the message to the addressee) you may not copy, forward,
disclose or use any part of the message or its attachments. At present
the integrity of email across the internet cannot be guaranteed and
messages sent via this medium are potentially at risk. All liability is
excluded to the extent permitted by law for any claims arising as a
result of the use of this medium to transmit information by or to CHP
Consulting or its affiliates.

 
Received on Wed May 25 20:54:50 2005

This is an archived mail posted to the Subversion Users mailing list.