Edgewall Software

Changes between Version 15 and Version 16 of TracModWSGI


Ignore:
Timestamp:
Nov 13, 2008, 4:16:14 PM (15 years ago)
Author:
ciaranj@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v15 v16  
    7070
    7171Now Trac drops the connection after serving a page and the connection count on the database will be kept minimal.
     72
     73== Getting Trac to work nicely with SSPI and 'Require Group' ==
     74If like me you've set Trac up on Apache, Win32 and configured SSPI, but added a 'Require group' option to your apache configuration, then the SSPIOmitDomain option is probably not working.  If its not working your usernames in trac are probably looking like 'DOMAIN\user' rather than 'user'.
     75
     76This WSGI script 'fixes' things, hope it helps:
     77{{{
     78import os
     79import trac.web.main
     80
     81os.environ['TRAC_ENV'] = 'D:/svn/tracs/dev.db'
     82os.environ['PYTHON_EGG_CACHE'] = 'D:/svn/tracs/site/eggs'
     83
     84def application(environ, start_response):
     85    if "\\" in environ['REMOTE_USER']:
     86        environ['REMOTE_USER'] = environ['REMOTE_USER'].split("\\", 1)[1]
     87    return trac.web.main.dispatch_request(environ, start_response)
     88}}}