perl + ldap + userPassword hash
i might need some help with the LDAP perl modules/libraries
im trying to get (remotely) the users password hash from an LDAP server where the password is encrypted. I need this to be able to copy the users information and his hash to my local LDAP server.
I did not figured out how i can do this
i was trying to get some information about the users with
but i dont see any argument that would give me the users password hash
maybe NET::LDAP can do the trick
the thing is like this locally when i exec the command
ldapsearch -D "cn=directory manager" -w secretpass -b "ou=people,dc=home,dc=com" uid=*
i get the list of users with that field named userPassword
You can indeed use Net::LDAP.
Basically you need to set up the connections first, something like this:
A search example:
Hope this helps.
|All times are GMT -5. The time now is 02:12 AM.|