[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How to generate an LDIF file?


> >
> > LDIF is defined by RFC.  Read the RFC and get the rules for generating
> > LDIF.
> >
> > <http://www.rfc-editor.org/rfc/rfc2849.txt>
> 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):


Just see the LDIF::assembleLine function.

> Thanks, Marco