LDAP password

i need to retrieve the clear text value of the LDAP password.what should i reference to.... in a formIn the resource config wiz, i have mapped the userPassword of LDAP to the password in IDMThanks in advancensankar
[249 byte] By [nsankar1da] at [2007-11-26 17:39:59]
# 1
You can ONLY set the password to LDAP. You can't retrieve the password from LDAP. If the LDAP password is same as IDM, you can retrieve from IDM password.
nnkcvsa at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
you mean not even how we get a LDAP password in the encrypted form, as seen in a LDIF file.
nsankar1da at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

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

s_kandlikara at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
accounts[LDAP].password never worked, but accounts[LDAP].abcdefall mapped attributes works except password?Any suggestion guys.....
nsankar1da at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
If you are using Sun it's userPassword.
nnkcvsa at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6
am using sun... so you mean ref the attribute using userPassword would work? or ?can you pls explain how to...nsankar
nsankar1da at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 7
Nopes....None of these work...Anyone, Any better suggestion?NSankar
nsankar1da at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 8

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

suveshsharmaa at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 9
yup, if possible, i need to retreive the encrypted Sun LDAP password from Sun IDm, ThanksNSankar
nsankar1da at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...
# 10
If your waveset password is the same as LDAP password, I suggest you to try this: <invoke name='decryptToString'><ref>waveset.password</ref> </invoke> You can create a dummy rule to test this out.
naxdorfa at 2007-7-9 0:08:08 > top of Java-index,Web & Directory Servers,Directory Servers...