Functions for Managing RDN
Description
This function compares
RDNs, their components do not necessarily have to be in the same order.
slapi_rdn_contains()
Checks whether a
type/value pair.
Syntax
#include "slapi-plugin.h"
int slapi_rdn_contains(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:
•
1
•
0
Description
This function searches for an RDN inside of the
matches both type and value as given in the parameters. This function makes a
call to
but
-1
See Also
slapi_rdn_get_index()
446
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
rdn1
Slapi_RDN
The Slapi_RDN structure containing the RDN value(s).
The type (cn, o, ou, etc.) of the RDN searched.
The value of the RDN searched.
Gives the length of value that should be taken into account for
the string operation when searching for the RDN.
if
contains an RDN that matches the type, value, and length.
rdn
if no RDN matches the desired type/value.
slapi_rdn_get_index()
.
and
. For
and
rdn2
rdn1
structure holds any RDN matching a given
Slapi_RDN
and verifies that the returned value is anything
to be considered equal
rdn2
structure
that
rdn
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS and is the answer not in the manual?
Questions and answers