Sun Directory Server Enterprise Edition 7.0 Developer's Guide


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,
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.