Hello, i have posted a couple of entries here with regards to authenticating to an LDAP server and some of the members are thinking, i am an hacker/cracker of a sort. Please could anyone tell/show me how to write the code for authentication from users on a web app to an LDAP server. I have a web app written already but users entries are stored in an LDAp server, i need to authenticate user from that dirctory, what do i do and how am i suppose to strcuture the code. I am using JAVA EE, MySQL server and a Sun Directory Enterprise Edition LDAP server. thanks
What app server is it ? There are many ways. You can configure the LDAP in the app server so that it recognizes the users automatically. Or you can perform programmatic authentication by binding to the LDAP. Does Sun LDAP server provide an API you can use ?