Edgewall Software

Changes between Version 67 and Version 68 of TracModWSGI


Ignore:
Timestamp:
Aug 8, 2015, 3:49:58 PM (9 years ago)
Author:
teridon@…
Comment:

Add information about SiteMinder authentication

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v67 v68  
    278278See also [trac:TracOnWindows/Advanced].
    279279
     280=== Using CA SiteMinder Authentication
     281Setup CA SiteMinder to protect your Trac login URL (e.g. /trac/login).  Then modify the trac.wsgi script generated using `trac-admin <env> deploy <dir>` to add the following lines, which extract the HTTP_SM_USER variable and set it to REMOTE_USER:
     282
     283{{{#!python
     284def application(environ, start_request):
     285    # Set authenticated username on CA SiteMinder to REMOTE_USER variable
     286    # strip() is used to remove any spaces on the end of the string
     287    if 'HTTP_SM_USER' in environ:
     288        environ['REMOTE_USER'] = environ['HTTP_SM_USER'].strip()
     289    ...
     290}}}
     291
     292Note:  you do not need any Apache "Location" directives.
     293
    280294=== Using Apache authentication with the Account Manager plugin's Login form ===
    281295