Hello,
LDIF is defined by RFC. Read the RFC and get the rules for generating LDIF.
therefore I've to conclude that there is no open source library enabling to write a program which creates and serializes well-formed LDIF data to be used as active entries.
Writing to LDIF files are easy, just a base64 encoder needed. Parsing is complicated a bit. Just an example in KDE's ldif class (it's not pure C++, but Qt):
http://websvn.kde.org/trunk/KDE/kdepimlibs/kldap/ldif.cpp?revision=695569&am...
Just see the LDIF::assembleLine function.
Thanks, Marco
Regards, György