Servlet LDAP Web Server Authentication  
Author Message
Kim_Berry





PostPosted: 2003-7-10 23:24:00 Top

java-programmer, Servlet LDAP Web Server Authentication This may not be the correct place to post this; however, please bear
with me.

Platform: Solaris 9
iPlanet Web Server
Java Servlets/JSP website

I have a servlet that displays the contents of a directory as links
available for downloading/viewing. I have also locked this directory
down using LDAP through the web administration page of iPlanet. What
I would like to happen is to authenticate to the web server first,
before the links are displayed, so that when the user clicks on the
links, they are not prompted with the typical gray box asking for a
username and password. I've researched and implemented JNDI,
authenticated to LDAP, tailed the logs, and I authenticate fine. My
servlet loads, and the first thing it does is query ldap and
authenticate. Next it prints out the page containing the links.
(I've even tried not closing the context) But as soon as I click on
the links, I am prompted again. I am assuming (and very fuzzy on how
this works) that yes, I authenticated to LDAP. But the webserver
doesn't know that. So how do I get the webserver to realize that I've
already authenticated? Any help would be appreciated.

Thanks,
Kim
 
ravishankar_sastry





PostPosted: 2003-7-11 17:10:00 Top

java-programmer >> Servlet LDAP Web Server Authentication http://httpd.apache.org/docs-2.0/mod/mod_auth_ldap.html

email***@***.com (Kim Berry) wrote in message news:<email***@***.com>...
> This may not be the correct place to post this; however, please bear
> with me.
>
> Platform: Solaris 9
> iPlanet Web Server
> Java Servlets/JSP website
>
> I have a servlet that displays the contents of a directory as links
> available for downloading/viewing. I have also locked this directory
> down using LDAP through the web administration page of iPlanet. What
> I would like to happen is to authenticate to the web server first,
> before the links are displayed, so that when the user clicks on the
> links, they are not prompted with the typical gray box asking for a
> username and password. I've researched and implemented JNDI,
> authenticated to LDAP, tailed the logs, and I authenticate fine. My
> servlet loads, and the first thing it does is query ldap and
> authenticate. Next it prints out the page containing the links.
> (I've even tried not closing the context) But as soon as I click on
> the links, I am prompted again. I am assuming (and very fuzzy on how
> this works) that yes, I authenticated to LDAP. But the webserver
> doesn't know that. So how do I get the webserver to realize that I've
> already authenticated? Any help would be appreciated.
>
> Thanks,
> Kim