I have user password in plain text format. What i want to do is, i want to find the hash of the plain text password using sha512 and compare the result with password retrieved from openldap. But problem here is i could not find the Salt used by the openldap for the sha512 hashing.
(i.e) In linux from /etc/shadow , we can find the salt, $6$salt$hash
similarly how to find the salt from password hash stored in openldap
System Environment:- Linux,c,c++