Generates a description of an entry as a string.
Syntax
#include "slapi-plugin.h"
char *slapi_entry2str( Slapi_Entry *e, int *len );
Parameters
The function has the following parameters:
Returns
The description of the entry as a string.
Description
This function returns the LDIF string representation of the entry or NULL if an error occurs. The string has the following format:
dn: <dn>\n
[<attr>: <value>\n]*
For example:
dn: uid=jrent2, ou=People, o=airius.com
cn: Judy Rentz
sn: Rentz
...
When you no longer need to use the string, you should free it from memory by calling the slapi_ch_free() function.
To convert a string description in this format to an entry of the Slapi_Entry data type, call the slapi_str2entry() function.
Example
[To be added]
See Also
slapi_str2entry().