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.