I am looking for a way to migrate a huge Synapse home server database to OpenLDAP without resetting the users' passwords. Migration to LDAP is necessary as we would like to integrate all our online services into each other
Therefore, I am looking for a way to make OpenLDAP understand Synapse's password hashes.
Synapses hashing algorithm is explained here:
pw = unicodedata.normalize("NFKC", password)
hashed = bcrypt.hashpw(
pw.encode('utf8') + password_pepper.encode("utf8"),
bcrypt.gensalt(bcrypt_rounds),
).decode('ascii')
Is it possible to implement such a hashing on OpenLDAP or any other open source LDAP server?