Thank you for your timely reply. I tried playing around with the cherrypy.request object but it didn't have an environment attribute. I don't think there is a turbogears.request object.
I think this has to do more with the installation method, mod_python vs. mod_wsgi. I think I am running turbogears 1.0.7 -Dave On Nov 19, 12:50 pm, Gustavo Narea <[EMAIL PROTECTED]> wrote: > 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#exposedit 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 -~----------~----~----~----~------~----~------~--~---

