LDIF functionality is included in libldif, but the interface is not provided (ldif.h is not installed by make install). This happens for RE24 branch, master branch is fine.
Patch: ftp://ftp.openldap.org/incoming/jvcelak-20110627-export-ldif-h.patch
Jan