Wow, thank you so much -- that worked! I can now login to trac properly.
I love you! :)
I had one minor issue but I fixed it. Siteminder put a space on the end
of HTTP_SM_USER (e.g. "rjacobso ").
I simply changed the code to strip() the space:
environ['REMOTE_USER'] = environ['HTTP_SM_USER'].strip()
and now REMOTE_USER is properly set to "rjacobso".
On Saturday, August 8, 2015 at 8:17:06 AM UTC-4, Jun Omae wrote:
>
> Oh, sorry. I just mistake. Replace SM_USER with HTTP_SM_USER.
>
> def application(environ, start_request):
> # Set authenticated username on CA SiteMinder to REMOTE_USER variable
> if 'HTTP_SM_USER' in environ:
> environ['REMOTE_USER'] = environ['HTTP_SM_USER']
> ...
>
> If the issue is still not solved, please confirm what name in
> "environ" is using for username from SiteMinder to dump all of
> "environ" when visiting /trac/login like this:
>
> def application(environ, start_request):
> print >>sys.stderr, repr(environ)
> # Set authenticated username on CA SiteMinder to REMOTE_USER variable
> if 'HTTP_SM_USER' in environ:
> environ['REMOTE_USER'] = environ['HTTP_SM_USER']
> ...
>
> --
> Jun Omae <[email protected] <javascript:>> (大前 潤)
>
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.