When openldap on hardened(?) gentoo is build with the gnutls use flag compile will work but ldap will not start.
If you use ldap in nsswitch.conf emerge will not work anymore until you remove ldap from nsswitch.conf.
Steps to Reproduce:
1.compile openldap-2.4.30 (the latest stable release) with the gnutls use flag
2.try to do anything with ldap that requires tls (start ldap server, connect to ldap server) and it will crash
As a workaround you have to disable the gnutls use flag. Some other packages often depend on it than you basically have to remove ldap support from them.
Created attachment 338648 [details]
Created attachment 338650 [details]
Example for the crash
This is the crash you are seeing when ldap is enabled in nsswitch.conf.
Basically this shuts down every emerge!
Not sure whether this is in sys-auth/nss_ldap (the crash refers to /lib64/libnss_ldap.so.2) or net-nds/openldap
Rebuild your system with a consistent version of gnutls.
Don't link one thing to old gnutls, and something else to new gnutls.