You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Scott Stocker <st...@stanford.edu> on 2000/09/13 03:01:29 UTC
Accessing environment variables within TomCat
Hi -
We have a special Apache module to authenticate users with Kerberos
which sets some environment variables that contain the username, name,
etc. I need to access the values of these environment variablesin my
servlets. Using JServ, I was able to access them with the following:
(where request is my HttpServletRequest)
request.getAttribute("org.apache.jserv.SU_AUTH_USER"); // SU_AUTH_USER
is the environment variable that is set by our Apache module
This doesn't work using mod_jk with Tomcat. It returns null.
Is there a way to access environment variables such as this with
mod_jk? Can someone send me instructions on how to set this up?
Thanks,
Scott Stocker
Software Developer
Stanford University