Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 390

Table of Contents

Advertisement

Functions for Managing RDN
Parameters
This function takes the following parameters:
rdn
type
value
length
Returns
This function returns one of the following values:
The index of the RDN that follows the RDN matching the contents of the
parameters type and value.
-1
Description
This function searches for an RDN inside the
both type and value as given in the parameters. If it succeeds, the position of the
matching RDN is returned.
See Also
slapi_rdn_get_index_attr()
slapi_rdn_contains()
slapi_rdn_get_index_attr()
Gets the position and the attribute value of the first RDN in a
that matches a given type.
Syntax
#include "slapi-plugin.h"
int slapi_rdn_get_index_attr(Slapi_RDN *rdn,
const char *type, char **value);
390
Netscape Directory Server Plug-In Programmer's Guide • May 2002
The Slapi_RDN structure containing the RDN value(s).
Type (cn, o, ou, etc.) of the RDN that is searched.
Value of the RDN searched.
Gives the length of value that should be taken into account for
the string comparisons when searching for the RDN.
if no RDN stored in
rdn
matches the given type/value pair.
Slapi_RDN
structure
that matches
rdn
structure
Slapi_RDN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents