Just to let you know, I was first introduced to JSP a few days ago when I was told "There is this tool we use to create ldap accounts that is created in JSP and the person who made it isn't around anymore". It still works for the most part, but we want some added functionality. So, I have been fumbling through the pages that have been created, and I think I have a handle on most of it as far as syntax and logic, but the only question I have is I cannot figure out where/how in the script the directory is accessed. It is accessed one for authentication, and two to add/modify entries (groups, people, attributes, etc). I would assume that somewhere there has to be the name/address of the directory server (I haven't looked at all the pages yet) but haven't found it.
From what I have read, there are two ways to access an LDAP directory through JSP. This is a posting from another forum.
Just some additional information, this app is on a tomcat web server on a solaris box, with Sun ONE Directory on a (different) solaris box as the LDAP I'm trying to access. My previous scripting experience is mostly bash, with a little perl. I am not a webdesigner, but a unix/nt/security admin type.
From what I have read, there are two ways to access an LDAP directory through JSP. This is a posting from another forum.
I can post any code that you may need to help me figure this out. The easiest might be the login.jsp (which is the webpage that is served up) and login2.jsp (which is the action of the login.jsp page).Actually there 2 ways to access LDAP from JSP. You can use JNDI or you can use the Directory SDK for Java from Netscape ( The Wrox book, Professional JSP contains a section on LDAP and JSP (or you can download the code from
Just some additional information, this app is on a tomcat web server on a solaris box, with Sun ONE Directory on a (different) solaris box as the LDAP I'm trying to access. My previous scripting experience is mostly bash, with a little perl. I am not a webdesigner, but a unix/nt/security admin type.