Authentication information not available. Please refer to the installation documentation.
Log excerpt at http://pastebin.com/xgpqSj77
I assume you do NOT need to see the SiteMinder stuff in httpd.conf.
trac.conf:
LoadModule wsgi_module modules/mod_wsgi.so
#WSGIScriptAlias /wsgi_app /data/www/html/test.wsgi
#WSGIScriptAlias /wsgi_app2 /data/www/html/test.py
Alias /trac/chrome/common /data/www/html/trac/testproject/deploy/htdocs/common
Alias /trac/chrome/site /data/www/html/trac/testproject/deploy/htdocs/site
<Directory "/data/www/html/trac/testproject/deploy/trac/htdocs">
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /trac /data/www/html/trac/testproject/deploy/cgi-bin/trac.wsgi
<Directory /data/www/html/trac/testproject/deploy/cgi-bin>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
# This is commented out because nothing worked when it was in effect.
#<Location "/trac/login">
#RequestHeader set REMOTE_USER %{REMOTE_USER}s
#</Location>
If I use that Location parameter:
1) With remote-user-auth.py disabled:
- login never results in an actual login
2) With remote-user-auth.py enabled:
- trac header says "logged in as (null) "
We reconfigured SiteMinder to "protect" (i.e. require redirect to login) from "/trac/login" to "/trac", and seems to "work"; i.e. I can now login and stay logged in. However:
- Simply visiting /trac automatically redirects to the SiteMinder login page. I don't really want this; I'd rather people only have to login if they want to edit something in Trac (i.e. I want them to have to click the "Login" link first)
- visiting /trac/login results in a "Authentication information not available" error from Trac. (but I am, in fact, logged in)
You're right, Siteminder doesn't set REMOTE_USER by default -- it does set SM_USER. But it can be (and currently is) configured to set REMOTE_USER in addition to setting SM_USER.
It's been that way the whole time.
Require must be accompanied by AuthName and AuthType directives"import osimport sysdef application(environ, start_request):print >> sys.stderr, "trac.wsgi: FOOBAR"
# Set authenticated username on CA SiteMinder to REMOTE_USER variableif 'SM_USER' in environ:
print >> sys.stderr, "trac.wsgi: setting REMOTE_USER to SM_USER"
environ['REMOTE_USER'] = environ['SM_USER']
I've added a section to the wiki about how to configure Trac for SiteMinder authentication: