HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
Entry to which you want to assign the DN.
e
Distinguished name to assign to the entry.
dn
Memory concerns The dn will be freed eventually 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 will be freed as a result of this call. Do not pass in a NULL value.
See also
“slapi_entry_free()”
“slapi_entry_get_dn()”
24.45 slapi_entry_set_sdn()
Description This function sets the value for the Slapi_DN object in the entry you specify.
Syntax
#include "slapi-plugin.h"
void slapi_entry_set_sdn( Slapi_Entry *e, const Slapi_DN *sdn );
Parameters This function takes the following parameters:
Entry to which you want to set the value of the Slapi_DN.e
The specified Slapi_DN value that you want to set.sdn
Memory concerns This function makes a copy of the sdn argument.
24.46 slapi_entry_set_uniqueid()
Description This function replaces the unique ID value of the entry with the uniqueid value
that you specify. In addition, the function adds SLAPI_ATTR_UNIQUEID to the attribute list and
gives it the unique ID value supplied. If the entry already contains a SLAPI_ATTR_UNIQUEID
attribute, its value is updated with the new value supplied.
Syntax
#include "slapi-plugin.h"
void slapi_entry_set_uniqueid( Slapi_Entry *e, char *uniqueid );
Parameters This function takes the following parameters:
Entry for which you want to generate a description.
e
The unique ID value to which you want to assign the entry.
uniqueid
Memory concerns Do not free the uniqueid after calling this function. The value will eventually
be freed when “slapi_entry_free()” is called.
You should pass in a copy of the value because this function will consume the value passed in.
For example:
char *uniqueid = slapi_ch_strdup(some_uniqueid);
slapi_entry_set_uniqueid(e, uniqueid);
Do not pass in a NULL for uniqueid.
See also “slapi_entry_free()”
230 Functions for managing entries