Forgot to answer the actual question...

On Wednesday November 19, 2008 21:19:14 Dave wrote:
> The problem is that TG has no idea who logged in.  With python cgi
> scripts, the os.environ['REMOTE_USER'] is set, however in TG it is
> not.

Have you checked the WSGI environment variable? I can't remember how it's 
exactly in TG1, but in TG2 the following will work:
    from tg import request
    request.environment['REMOTE_USER']

> According to
> http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html#exposed it should
> be set for cgi scripts.  Is there a way to make apache set that env
> variable?
>
> Should I look into mod_wsgi instead of mod_python, or does anyone have
> a good fix?



-- 
Gustavo Narea.
General Secretary.
GNU/Linux Matters <http://gnulinuxmatters.org/>.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to