Syntax
#include "slapi-plugin.h" char *slapi_entry2str( Slapi_Entry *e, int *len ); Parameters
#include "slapi-plugin.h" char *slapi_entry2str( Slapi_Entry *e, int *len );
The function has the following parameters:
e
len
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: <dn>\n
[<attr>: <value>\n]*
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.
dn: uid=jrent2, ou=People, o=airius.com
cn: Judy Rentz
sn: Rentz
...
To convert a string description in this format to an entry of the Slapi_Entry data type, call the slapi_str2entry() function.
See Also
slapi_str2entry().