Accessing "userPassword" attribute in Sun One Directory Server (LDAP)
807573May 4 2009 — edited Jun 29 2009Hi everyone,
I want to access "userPassword" attribute from LDAP. I hope that is the attribute which stores the user's password. Is it possible to do so?
I tried this:
LDAPAttribute paswd = (LDAPAttribute)myEntry.getAttribute("userPassword");
here myEntry is a LDAPEntry that i get after search the LDAP.
The requirement is that, I need to authenticate a user to the LDAP programmatically, but I know only his uid (user -id) attribute.
Please let me know if there is any way to do this..
Thanks in advance...