Can any one help to create a simple program to validate a user against LDAP?
I am using OPEN DS as my LDAP Server and JNDI API to access LDAP Server for authorization.
After creating a new user in Open DS, I created an html with username & password as textfield. Then I created a servlet which connected succesfully to LDAP Server.
However, I am getting the password from LDAP Server for the current user in encrypted format and hence my authorization always fails.
My question is, how to write a program using JNDI API to authorize an user?
This is my code: