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

Table of Contents

Advertisement

Working with Entries, Attributes, and Values
If a double-colon is used after a data type, it signifies that the value after the
double-colon is encoded as a base-64 string. Data is sometimes encoded as a
base-64 string. For example, it might be encoded this way if the value contains a
non-printing character or newline.
To get the LDIF string representation of an entry (and vice versa), call the following
functions:
To convert an entry from the datatype
representation, call the
This function returns the LDIF string representation of the entry or NULL if an
error occurs. When you no longer need to use the string, you should free it
from memory by calling the
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.
62
Netscape Directory Server Plug-In Programmer's Guide • May 2002
slapi_filter_free()
slapi_ch_free()
, 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.
to its LDIF string
Slapi_Entry
function.
function.
function.
Slapi_Entry
modifies the value of the string
slapi_entry_get_dn()
slapi_entry_set_dn()
. If an error
function.
function.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents