Getting And Setting The Dn Of An Entry; Verifying Compliance With The Schema; Getting The Attributes And Values Of An Entry - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Working with Entries, Attributes, and Values
To convert an LDIF string representation back to an entry of the datatype
Slapi_Entry
This function returns an entry of the datatype
occurred during the conversion process, the function returns NULL instead.
When you are done working with the entry, you should call the
slapi_entry_free()
NOTE

Getting and Setting the DN of an Entry

You can call the following two front-end routines to get and set the DN for an
entry:
To get the DN for an entry, call the
To set the DN for an entry, call the

Verifying Compliance with the Schema

Before you add or modify an entry in the database, you may want to verify that
the new or changed entry still complies with the database schema.
To see if an entry complies with the schema, call the
slapi_entry_schema_check()

Getting the Attributes and Values of an Entry

There are two basic ways to obtain the attributes and values of an entry:
You can iterate through the attributes of the entry, testing each one to see if it
is the needed attribute.
You can use the
specific attribute.
72
Netscape Directory Server Plug-in Programmer's Guide • October 2004
, call the
slapi_str2entry()
function.
Calling
slapi_str2entry()
argument passed into the function (not a copy). If you still want to
use the string representation of the entry, make a copy of the string
before calling this function.
function.
slapi_entry_attr_find()
function.
Slapi_Entry
modifies the value of the string
slapi_entry_get_dn()
slapi_entry_set_dn()
function to see if an entry has a
. If an error
function.
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