I'm using openldap 2.4.40, and i need to migrate my existing ldap database, configuration, and schema (basically everything ldap server related) to a new machine.
the problem is, I use cn=config configuration not the old slapd.conf file anymore.
The documentation provided by openldap and other 3rd party websites only helps for migrating slapd.conf LDAP server, not LDAP server with the newer cn=config configuration file.
and also I have new schema (attributetype and objectclass), is there a way to migrate these to a new machine as easily as possible?
I need other way than reconfiguring and adding my schema manually one by one to the new machine.
This will be done with the intention of turning off the old machine most likely.
TL;DR Is there any way to conveniently migrate LDAP database, schema, configuration from 1 LDAP Server to a new LDAP Server with the intention of turning off the old machine
*Posted the answer below