Slapi_Rdn_Get_Index_Attr() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Managing RDN
Syntax
#include "slapi-plugin.h"
int slapi_rdn_get_index(Slapi_RDN *rdn, const char *type,
const char *value,size_t length);
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
matches 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.
446
Netscape Directory Server Plug-in Programmer's Guide • October 2004
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
rdn
structure
Slapi_RDN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents