The openldap-2.3.20 ebuild defaulted to building with --enable-syncprov In the openldap-2.3.24-r2 ebuild syncprov isn't enabled nor is there a way to specify building with syncprov.
So, use -r1 meanwhile? :)
I just added a way to use --enable-syncprov in -r2 via my overlay but -r1 enables it by default
you now need to have USE="overlays" in order to build syncprov as its considered part of the overlays.
I have build OpenLDAP with the following: [ebuild R ] net-nds/openldap-2.3.27-r2 USE="berkdb crypt ipv6 kerberos overlays readline samba ssl tcpd -debug -gdbm -minimal -odbc -perl -sasl (-selinux) -slp -smbkrb5passwd" 0 kB You will notice overlays are enabled. However syncprov was not available. The only way to get syncprov was to specify EXTRA_ECONF="--enable-syncprov"
Fixed in 2.3.30-r1 and above
Same problem in 2.3.35-r1 & 2.3.37 syncprov not included with USE="overlays" used EXTRA_ECONF="--enable-syncprov"
Confirmed in 2.3.37 too. used only USE="overlays", files will be installed : /usr/lib64/openldap/openldap/syncprov-2.3.so.0 /usr/lib64/openldap/openldap/syncprov-2.3.so.0.2.23 /usr/lib64/openldap/openldap/syncprov.la /usr/lib64/openldap/openldap/syncprov.so /usr/share/man/man5/slapo-syncprov.5.bz2 But slaptest gives error (overlay "syncprov" not found) I've to use the EXTRA_ECONF="--enable-syncprov" to make it working, and no .so files are installed ! So can be workarround with moduleload / modulepath in slapd.conf ?
(In reply to comment #7) > So can be workarround with moduleload / modulepath in slapd.conf ? > Ok, I can confirm the workaround, but you *need* to specify modulepath, as slapd doenst look into .../openldap/openldap directory. 1st : define modules : modulepath /usr/lib64/openldap/openldap moduleload syncprov 2nd : in your database definition, use the overlay : overlay syncprov syncprov-nopresent TRUE syncprov-reloadhint TRUE
(In reply to comment #8) > Ok, I can confirm the workaround, but you *need* to specify modulepath, as > slapd doenst look into .../openldap/openldap directory. Yup, there's a reason we generate paths and basic modules :) > 1st : define modules : > > modulepath /usr/lib64/openldap/openldap > moduleload syncprov > > 2nd : in your database definition, use the overlay : > > overlay syncprov > syncprov-nopresent TRUE > syncprov-reloadhint TRUE > also as a good hint, openldap provides testcases for nearly all overlay and they tend to be good config hints as they test there if it works :) So marking this as invalid as it's desired behaviour