Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 302

Table of Contents

Advertisement

Functions for Managing Entries
Returns
This function returns one of the following values:
1
0
slapi_str2entry()
Converts an LDIF description of a directory entry (a string value) into an entry of
the
Slapi_Entry
Syntax
#include "slapi-plugin.h"
Slapi_Entry *slapi_str2entry( char *s, int flags );
Parameters
This function takes the following parameters:
s
flags
The value of the
SLAPI_STR2ENTRY_REMOVEDUPVALS
SLAPI_STR2ENTRY_ADDRDNVALS
Returns
This function returns one of the following values:
A pointer to the
NULL
string.
302
Netscape Directory Server Plug-In Programmer's Guide • May 2002
if
is the root DSE.
dn
if
is not the root DSE.
dn
type.
Description of an entry that you want to convert to Slapi_Entry.
One or more flags specifying how the entry should be generated
argument can be one of the following values:
flags
Slapi_Entry
if the string cannot be converted, for example, if no DN is specified in the
Removes any duplicate values in the attributes
of the entry.
Adds the relative distinguished name (RDN)
components (for example, uid=bjensen) as
attributes of the entry.
structure representing the entry.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents