We have a servlet that uses kerberos authentication. Using the REMOTE_ADDR environment
variable, we authenticate directly with the client via a different protocol from HTTP.
To get it to work with a kerberos client on unix, we need to pass not only the IP of
the client, but also the port, since unix is multi-user. Hence, we need to pass the
REMOTE_PORT environment variable from apache to the servlet.
I've looked over the jserv code, and I'm not sure what the best way to do this is.
One approach seemed to be to use the ApJServEnvVar directive, but this seems to require that
the value is static and set in the jserv.conf file; it doesn't seem to dynamically export the env
varaible value itself. Furthermore, on the servlet engine end, I'm not sure how I'd get from the stream
of data sent to the servlet engine from mod_jserv.
Another approach seems to be to put the value into a different environment variable; For example,
we don't use the REMOTE_USER value, so I could stick it there. However, this means I'm playing
around with the protocol in a non-standard way.
Am I missing something? Does anybody have a sugggestion on an elegant and non-invasive solution?
thanks,
rob
-- -------------------------------------------------------------- Please read the FAQ!
