Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 342

Table of Contents

Advertisement

Functions for Managing Entries
slapi_entry_set_uniqueid()
Replaces the unique ID value of an entry with the unique ID value that you supply.
Syntax
#include "slapi-plugin.h"
void slapi_entry_set_uniqueid( Slapi_Entry *e,
char *uniqueid );
Parameters
This function takes the following parameters:
e
uniqueid
Description
This function replaces the unique ID value of the entry with the
that you specify. In addition, the function adds
attribute list and gives it the unique ID value supplied. If the entry already contains
a
SLAPI_ATTR_UNIQUEID
supplied.
Memory Concerns
Do not free the
freed when
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
See Also
slapi_entry_free()
slapi_entry_size()
This function returns the approximate size of an entry, rounded to the nearest 1k.
This can be useful for checking cache sizes, estimating storage needs, and so on.
342
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Entry for which you want to generate a description.
The unique ID value to which you want to assign the entry.
attribute, its value is updated with the new value
after calling this function. The value will eventually be
uniqueid
slapi_entry_free()
for
NULL
uniqueid
SLAPI_ATTR_UNIQUEID
is called.
.
value
uniqueid
to the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents