Changes between Version 1 and Version 2 of TracModWSGI


Игнорировать:
Время:
21 июн. 2010 г., 16:31:21 (16 лет назад)
Автор:
trac
Комментарий:

--

Обозначения:

Без изменений
Добавлено
Удалено
Изменено
  • TracModWSGI

    v1 v2  
    9090
    9191== 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'.
     92If 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'.
    9393
    9494This WSGI script 'fixes' things, hope it helps:
     
    101101
    102102def 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]
    105105    return trac.web.main.dispatch_request(environ, start_response)
    106106}}}