accessing remote user from Apache authentication

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

accessing remote user from Apache authentication

gosnat
I would like to make use of an existing apache authentication set up that sets
the REMOTE_USER env_var (JkEnvVar).  Is it possible to get access to this
without having to set up tomcat authentication so that I can know which user is
currently authenticated?   Ideally, I'd like to be able to use
xxforms:get-remote-user(), but grabbing it from a header seems like it would
also solve the problem.

I'm thinking of doing something similar to this:

http://osdir.com/ml/apache.mod-auth-kerb.general/2005-10/msg00009.html

but I'm wondering if there's a better way.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: accessing remote user from Apache authentication

Alessandro Vernet
Administrator
gosnat wrote
I would like to make use of an existing apache authentication set up that sets
the REMOTE_USER env_var (JkEnvVar).  Is it possible to get access to this
without having to set up tomcat authentication so that I can know which user is
currently authenticated?   Ideally, I'd like to be able to use
xxforms:get-remote-user(), but grabbing it from a header seems like it would
also solve the problem.
If there is a header REMOTE_USER set, from XPath in XForms you can use xxforms:get-request-header('REMOTE_USER'). You can find more on those extension function at:

http://www.orbeon.com/ops/doc/reference-xforms-functions

Alex