Seem to have an issue with /usr/lib/openldap libraries not loading with OpenLDAP version 2.6.0
Working fine with 2.4.59-2.
Example with 2.6.0-2:
$this->bbcode_second_pass_code('', 'pacman -U openldap-2.6.0-2-aarch64.pkg.tar.xz libldap-2.6.0-2-aarch64.pkg.tar.xz')
After starting slapd.service:
$this->bbcode_second_pass_code('', 'Jan 16 18:27:04 manjaro-pi4 systemd[1]: Starting OpenLDAP server daemon...
Jan 16 18:27:04 manjaro-pi4 slapd[373603]: @(#) $OpenLDAP: slapd 2.6.0 (Nov 19 2021 02:38:53) $
openldap
Jan 16 18:27:04 manjaro-pi4 slapd[373603]: daemon: bind(10) failed errno=22 (Invalid argument)
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: daemon: bind(12) failed errno=22 (Invalid argument)
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: lt_dlopenext failed: (syncprov) file not found
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: olcModuleLoad: value #0: <olcModuleLoad> handler exited with 1!
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: config error processing cn=module{0},cn=config: <olcModuleLoad> handler exited with 1
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: DIGEST-MD5 common mech free
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: DIGEST-MD5 common mech free
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: slapd stopped.
Jan 16 18:27:05 manjaro-pi4 slapd[373603]: connections_destroy: nothing to destroy.
Jan 16 18:27:05 manjaro-pi4 systemd[1]: slapd.service: Control process exited, code=exited, status=1/FAILURE
Jan 16 18:27:05 manjaro-pi4 systemd[1]: slapd.service: Failed with result 'exit-code'.
Jan 16 18:27:05 manjaro-pi4 systemd[1]: Failed to start OpenLDAP server daemon.')
To test further, compiled openldap 2.6.0 manually and installed locally under user folder (prefix), then changed slapd.conf to refer to user openldap library folder for modules and this worked. Also tested 2.6.0-2 on Arch x86/64 and found no library issues.
Noticed ldd differences with library files - example, working is lower (user) version:
$this->bbcode_second_pass_code('', '[root@manjaro-pi4 pkg]# ldd /usr/lib/openldap/syncprov.so.2.0.200
linux-vdso.so.1 (0x0000ffffabb93000)
libldap-2.4.so.2 => not found
liblber.so.2 => /usr/lib/liblber.so.2 (0x0000ffffabafd000)
libc.so.6 => /usr/lib/libc.so.6 (0x0000ffffab989000)
/usr/lib/ld-linux-aarch64.so.1 (0x0000ffffabb62000)
[root@manjaro-pi4 pkg]# ldd ~jim/Downloads/openldap/install/libexec/openldap/syncprov.so.2.0.200
linux-vdso.so.1 (0x0000ffffb7f2b000)
libldap.so.2 => /home/jim/Downloads/openldap/install/lib/libldap.so.2 (0x0000ffffb7e6a000)
libsasl2.so.3 => /usr/lib/libsasl2.so.3 (0x0000ffffb7e17000)
libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x0000ffffb7d70000)
libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x0000ffffb7a9a000)
liblber.so.2 => /home/jim/Downloads/openldap/install/lib/liblber.so.2 (0x0000ffffb7a7b000)
libresolv.so.2 => /usr/lib/libresolv.so.2 (0x0000ffffb7a54000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000ffffb7a24000)
libc.so.6 => /usr/lib/libc.so.6 (0x0000ffffb78b0000)
/usr/lib/ld-linux-aarch64.so.1 (0x0000ffffb7efa000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x0000ffffb789c000)')
So there seems to be an issue with the PKGBUILD version of the aarch64 OpenLDAP 2.6.0 libraries.