Edgewall Software

Changes between Version 73 and Version 74 of TracModWSGI


Ignore:
Timestamp:
Jan 7, 2016, 10:17:31 PM (8 years ago)
Author:
Robert.C.Jacobson@…
Comment:

Fix SiteMinder documentation.

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v73 v74  
    293293
    294294=== Using CA !SiteMinder Authentication
    295 Setup CA !SiteMinder to protect your Trac login URL (e.g. `/trac/login`).  Also add a !LogOffUri parameter to the agent configuration (e.g. `/trac/logout`).  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`:
     295Setup CA !SiteMinder to protect your Trac login URL (e.g. `/trac/login`).  Also, make sure the policy is set to include the HTTP_REMOTE_USER variable.  If your site allows it, you can set this in LocalConfig.conf:
     296{{{
     297RemoteUserVar="WHATEVER_IT_SHOULD_BE"
     298SetRemoteUser="YES"
     299}}}
     300The specific variable is site-dependent.  Ask your site administrator.  If your site does not allow the use of LocalConfig.conf for security reasons, have your site administrator set the policy on the server to set REMOTE_USER.
     301
     302Also add a !LogOffUri parameter to the agent configuration (e.g. `/trac/logout`).
     303
     304Then modify the trac.wsgi script generated using `trac-admin <env> deploy <dir>` to add the following lines, which extract the `HTTP_REMOTE_USER` variable and set it to `REMOTE_USER`:
    296305
    297306{{{#!python
     
    300309    # strip() is used to remove any spaces on the end of the string
    301310    if 'HTTP_SM_USER' in environ:
    302         environ['REMOTE_USER'] = environ['HTTP_SM_USER'].strip()
     311        environ['REMOTE_USER'] = environ['HTTP_REMOTE_USER'].strip()
    303312    ...
    304313}}}