Changes between Version 1 and Version 2 of TracModWSGI
- Время:
- 21 июн. 2010 г., 16:31:21 (16 лет назад)
Обозначения:
- Без изменений
- Добавлено
- Удалено
- Изменено
-
TracModWSGI
v1 v2 90 90 91 91 == Getting Trac to work nicely with SSPI and 'Require Group' == 92 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'.92 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 'DOMAINuser' rather than 'user'. 93 93 94 94 This WSGI script 'fixes' things, hope it helps: … … 101 101 102 102 def application(environ, start_response): 103 if "\ \" in environ['REMOTE_USER']:104 environ['REMOTE_USER'] = environ['REMOTE_USER'].split("\ \", 1)[1]103 if "\" in environ['REMOTE_USER']: 104 environ['REMOTE_USER'] = environ['REMOTE_USER'].split("\", 1)[1] 105 105 return trac.web.main.dispatch_request(environ, start_response) 106 106 }}}