Generates a description of an entry as an LDIF string. This function behaves much like slapi_str2entry(). You can however specify output options with this function.
#include "slapi-plugin.h" char *slapi_entry2str_with_options( Slapi_Entry const *e, int *len, int options );
This function takes the following parameters:
Entry that you want to convert into an LDIF string.
Length of the LDIF string returned by this function.
An option set that specifies how you want the string converted.
You can OR together any of the following options when you call this function:
This function returns the LDIF string representation of the entry you specify or NULL if an error occurs.
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.
When you no longer need to use the string, you should free it from memory by calling the slapi_ch_free_string() function.