I am able to read the password stored in LDAP via JNDI. But the result is some gibberish characters. So how do i decrypt it?
Below is my code:
public
with ldap we will get data in byte array.if you need to get the original password text use the following code:
Attribute userPassword = attributes.get("userPassword"); String pwd = new String((byte[]) userPassword.get());