By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,536 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,536 IT Pros & Developers. It's quick & easy.

Servlet LDAP Web Server Authentication

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
http://httpd.apache.org/docs-2.0/mod/mod_auth_ldap.html

Ki*******@emainc.com (Kim Berry) wrote in message news:<6c**************************@posting.google. 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

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.