Functions for Managing Entries
slapi_entry_dup()
Makes a copy of an entry, its DN, and its attributes.
Syntax
#include "slapi-plugin.h"
Slapi_Entry *slapi_entry_dup( const Slapi_Entry *e );
Parameters
This function takes the following parameter:
e
Returns
This function returns the new copy of the entry. If the structure cannot be
duplicated, for example, if no more virtual memory exists, the
terminates.
Description
This function returns a copy of an existing
other front-end functions to change the DN and attributes of this entry.
Memory Concerns
When you are no longer using the entry, free it from memory by calling the
slapi_entry_free()
See Also
slapi_entry_alloc()
slapi_entry_free()
slapi_entry_first_attr()
Finds the first attribute in an entry. If you want to iterate through the attributes in
an entry, use this function in conjunction with the
function.
Syntax
#include "slapi-plugin.h"
int slapi_entry_first_attr( const Slapi_Entry *e, Slapi_Attr **attr
);
340
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Entry that you want to copy.
function.
slapd
structure. You can call
Slapi_Entry
slapi_entry_next_attr()
program
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers