Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

Description

This function generates an LDIF string value conforming to the following format:

dn: dn\n
 [attr: value\n]*

For example:

dn: uid=jdoe, ou=People, o=example.com
cn: Jane Doe
sn: Doe
...

To convert a string description in LDIF format to an entry of the Slapi_Entry data type, call the slapi_str2entry() function.