| Mark Phippard 2004-08-24, 7:17 pm |
| Jerry Camden wrote:
> We are running WAS 5 Express on iSeries through Apache. We use
> Apache and a LDAP to authenticate our users which is working fine.
> Now, we have a need to use that userID in some of our jsps and
> servlets. I can't find where or how to get at that information.
> I've looked at so much of the docs that I'm probably looking right
> over it. Please point me in the right direction.
>
String username = request.getRemoteUser();
However, for this value to be set, Apache must be protecting that URL.
In other words, if you were to start with a clean browser session and
enter the URL of the JSP/Servlet directly, you would have to be
prompted for username and password.
You are probably doing this already, but it isn't enough to have Apache
configured for LDAP, Apache also has to be configured to protect the
URL that WAS Express is using. Normally, I would just protect the
entire context root of the app.
Mark
|