quick subversion & trac tip

My Trac/Subversion setup finally authenticates both IE and Firefox properly.

I am using Trac (running via mod_python) on Apache 2.0 with the SSPI module (mod_auth_sspi.so) turned on.

This will allow you to use Tortoise SVN via shell and Trac with full NTLM auththentication.


# Subversion
<Location /svndata>
DAV svn
# any /svn/foo URL will map to a repository C:/svn/foo
# I've only got it working using SVNPath!!
SVNParentPath C:/svndata
AuthName "Subversion Authentication"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOmitDomain On
SSPIDomain DOMAIN
SSPIOfferBasic On
Require valid-user
</Location>

# TRAC
Alias /trac "C:/Python23/share/trac/htdocs"

<Location /projects>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "c:/tracdata"

#NT Domain auth config
AuthType SSPI
AuthName "Trac Project"

SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIOmitDomain On
SSPIBasicPreferred On
SSPIDomain DOMAIN

Require valid-user
</Location>

I have put this up here as it represents a great amount of Googling.