I want to search a user from LDAP and after getting the user I want to connect (validate)
that particular user using his DN and Password
I have successfully getting the DN but dont know how to bind it?
The LDAP bind() operation corresponds to the following in JNDI:
InitialLdapContext with enough information in the environment to cause a login, i.e. a security principal and credentials, or
reconnect() on an
LdapContext initially obtained without any security information in the environment, or with security information relating to a different principal, but whose environment has subsequently been modified.