Sets the distinguished name (DN) of an entry.
#include "slapi-plugin.h" void slapi_entry_set_dn( Slapi_Entry *e, char *dn );
This function takes the following parameters:
Entry to which you want to assign the DN.
Distinguished name you want assigned to the entry.
This function sets a pointer to the DN supplied in the specified entry.
dn is freed when slapi_entry_free() is called.
A copy of dn should be passed, for example:
char *dn = slapi_ch_strdup(some_dn); slapi_entry_set_dn(e, dn);
The old dn is freed as a result of this call. Do not pass in a NULL value.