This repo explains how to build OpenLDAP on arm64, and build a docker image based on bitnami/openldap that runs on arm64-based CPUs such as Raspberry Pi
Why do you think that https://github.com/Inqnuam/MongoDB-ARMv8 is a good alternative to bitnami-openldap-arm64