WebSphere HTTP Server - Re: How do I retrieve userID authenticated by Apache via LDAP in WAS5Exp .jsp on iSeri

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > August 2004 > Re: How do I retrieve userID authenticated by Apache via LDAP in WAS5Exp .jsp on iSeri





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How do I retrieve userID authenticated by Apache via LDAP in WAS5Exp .jsp on iSeri
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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com