Hello fellow brisbanite!
Sorry what you have can not be used as a shadow password file which makes use of the GNU crypt() library function. See man crypt for more details.
the shadow file password field not only requires the encrypted password, but also the hashing method and the salt that was used for the encryption to form a character sequence such as
Code:
$5${salt}${encrypted_password}
where '5' is for SHA-256 hashing function.
What you have MAY correspond to '{encrypted_password}' part but without a salt that is useless. It also appears to be a little short for a SHA-256 encryption, perhaps it is only SHA-128 which is not supported.
There is also the problem of exactly how OpenLDAP is representing binary data in an ASCII form. It looks like it is a base64 encoding (the = fill characters at the end is a give-a-way), which should be compatible.
In summery, No you can not used it in the shadow file, at least not as is.
Does anyone have info on the OpenLDAPs password hashing method?