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

Description

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

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

For example:

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

To convert an entry described in LDIF string format to an LDAP entry using the Slapi_Entry data type, call the slapi_str2entry() function.