Changes between Version 2 and Version 3 of TracModWSGI
- Timestamp:
- 09/24/12 18:52:15 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModWSGI
v2 v3 276 276 }}} 277 277 278 Using the above, usernames in Trac will be of the form `DOMAIN\ \username`, so278 Using the above, usernames in Trac will be of the form `DOMAIN\username`, so 279 279 you may have to re-add permissions and such. If you do not want the domain to 280 280 be part of the username, set `SSPIOmitDomain On` instead. … … 360 360 ''Note: using mod_wsgi 2.5 and Python 2.6.1 gave an Internal Server Error on my system (Apache 2.2.11 and Trac 0.11.2.1). Upgrading to Python 2.6.2 (as suggested [http://www.mail-archive.com/modwsgi@googlegroups.com/msg01917.html here]) solved this for me[[BR]]-- Graham Shanks'' 361 361 362 If you plan to use `mod_wsgi` in embedded mode on Windows or with the MPM worker on Linux, then you'll even need version 0.3.4 or greater (see [trac:#10675] for details). 363 362 364 === Getting Trac to work nicely with SSPI and 'Require Group' === 363 If 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'.365 If 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'. 364 366 365 367 This WSGI script 'fixes' things, hope it helps: … … 372 374 373 375 def application(environ, start_response): 374 if "\\ \\" in environ['REMOTE_USER']:375 environ['REMOTE_USER'] = environ['REMOTE_USER'].split("\\ \\", 1)[1]376 if "\\" in environ['REMOTE_USER']: 377 environ['REMOTE_USER'] = environ['REMOTE_USER'].split("\\", 1)[1] 376 378 return trac.web.main.dispatch_request(environ, start_response) 377 379 }}} … … 391 393 }}} 392 394 395 or 396 397 {{{ 398 import trac.db.mysql_backend 399 trac.db.mysql_backend.MySQLConnection.poolable = False 400 }}} 401 393 402 Now Trac drops the connection after serving a page and the connection count on the database will be kept minimal. 394 403 … … 397 406 === Other resources 398 407 399 For more troubleshooting tips, see also the [TracModPython#Troubleshooting mod_python troubleshooting] section, as most Apache-related issues are quite similar, plus discussion of potential [http://code.google.com/p/modwsgi/wiki/ApplicationIssues application issues] when using mod_wsgi. 408 For more troubleshooting tips, see also the [TracModPython#Troubleshooting mod_python troubleshooting] section, as most Apache-related issues are quite similar, plus discussion of potential [http://code.google.com/p/modwsgi/wiki/ApplicationIssues application issues] when using mod_wsgi. The wsgi page also has a [http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac Integration With Trac] document. 400 409 401 410
