Hi sankar,
If its not a one way encryption [which is very rare for any LDap] u can retrieve back the password. You can try getting back the encrypted password using :
resourceAccounts.currentResourceAccounts[$yourresourceAccount$].password
or
accounts[$yourresourceAccount$].password
in my case it was
accounts[AD].password
If you want to decrypt the password [if its possible], write a custom java class and then try using relevant api to decrypt and pass the encrypted password string
Below is the link which shows how to decrypt the Lighthouse password which in this case can be decrypted. I guess you can use similar technique.
http://forum.java.sun.com/thread.jspa?forumID=764&threadID=5053804
thanks,
Sanketh
I don't think you can retrieve a "clear text" password from Sun Directory Server. The Sun Directory server uses a one-way encryption for the passwords. Even an ldapsearch with Directory manager would not display the password.
You can get the encrypted password though. Do you still wish to have the the encrypted password?
~Suvesh