Creating A New Entry - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Working with Entries, Attributes, and Values
When working with entries, you use the
value pairs. The front-end routines listed in Table 5-1 are designed to help you
manipulate entries passed in parameter blocks. These functions are described in
more detail in the sections that follow the table.
Table 5-1
Front-end function
slapi_entry_alloc()
slapi_entry_dup()
slapi_entry_free()
slapi_filter_free()
slapi_str2entry()
slapi_entry_get_dn()
slapi_entry_set_dn()
slapi_entry_schema_check()
slapi_entry_first_attr()
slapi_entry_next_attr()
slapi_entry_attr_find()
slapi_entry_attr_merge_sv()
slapi_entry_add_values_sv()
slapi_entry_delete_values_sv()

Creating a New Entry

In some situations, you might need to create a new entry. There are two basic
ways to do this:
By allocating memory for a new entry
To allocate memory for a new entry, call the
This function returns a pointer to a new entry of the opaque datatype
Slapi_Entry
routines to set the DN and attributes of the entry.
70
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Front-End Functions for Manipulating Entries and Attributes
. Once you create a new entry, you should call other front-end
datatype to get attribute
Slapi_Entry
Description
Allocate memory for a new entry.
Copy an entry.
Free an unused entry from memory.
Convert an entry to an LDIF string
representation and vice versa.
Get or set the DN for an entry.
Verify that an entry complies with the
schema.
Get the attributes of an entry.
Find the values for a specified attribute.
Merge an attribute and its values into an
entry.
Add values to an attribute in an entry.
Delete values from an attribute in an entry.
slapi_entry_alloc()
function.

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents