Using overlay chain in openldap 2.4.* needs --enable-ldap configure flag set as told in chapter 12.3.1. at http://www.openldap.org/doc/admin24/overlays.html#Chaining As i found out this flag was used in 2.3.* ebuilds but not anymore in 2.4.* ebuilds. Manually fixing the ebuild does the trick. Reproducible: Always Steps to Reproduce: 1. net-nds/openldap-2.4.19-r1 USE="berkdb crypt gnutls ipv6 overlays perl samba sasl smbkrb5passwd ssl syslog tcpd -cxx -debug -experimental -icu -iodbc -kerberos -minimal -odbc (-selinux) -slp" 2. 3.
Applied to 2.4.21 now, thanks :)