https://bugs.openldap.org/show_bug.cgi?id=9517
--- Comment #7 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to gilbert.kowarzyk from comment #6)
I was not able to find documentation listing `libsodium` and `libargon2` as being both supported when building slapd, only some references in the building scripts. On the topic of documentation, it could be beneficial to explain that this choice is available, and maybe a short explanation of why one would pick one over the other. Some of the supported libraries are listed here (https://openldap.org/doc/admin24/install.html).
For 2.4, it's literally documented in its contrib Makefile. Anyone building it is going to have to read the Makefile to get anywhere to start with.
But generally I'd suggest looking at OpenLDAP 2.5, where argon2 is fully integrated in with configure:
./configure --help | grep argon --enable-argon2 Argon2 password hashing module no|yes [no] --with-argon2 with argon2 support library auto|libsodum|libargon2 [auto]
--Quanah