Makes a copy of an entry, its DN, and its attributes.
#include "slapi-plugin.h" Slapi_Entry *slapi_entry_dup( const Slapi_Entry *e );
This function takes the following parameter:
Entry that you want to copy.
This function returns the new copy of the entry. If the structure cannot be duplicated (for example, if no more virtual memory exists), the slapd program terminates.
This function returns a copy of an existing Slapi_Entry structure. You can call other front-end functions to change the DN and attributes of this entry.
When you are no longer using the entry, you should free it from memory by calling the slapi_entry_free() function.