Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 260

Table of Contents

Advertisement

Functions for Managing DNs
slapi_dn_isparent()
Determines whether or not a particular DN is the parent of another specified DN.
Before calling this function, you should call
normalize the DNs and convert all characters to lowercase.
Syntax
#include "slapi-plugin.h"
int slapi_dn_isparent( const char *parentdn, char *childdn );
Parameters
This function takes the following parameters:
parentdn
childdn
Returns
This function returns one of the following values:
A non-zero value if
0 if the
See Also
slapi_dn_issuffix()
slapi_dn_isroot()
Determines whether or not the specified DN is the root DN for this local database.
Before calling this function, you should call
normalize the DN and convert all characters to lowercase.
Syntax
#include "slapi-plugin.h"
int slapi_dn_isroot( Slapi_PBlock *pb, char *dn );
Parameters
This function takes the following parameters:
pb
260
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Determine if this DN is the parent of childdn.
Determine if this DN is the child of parentdn.
parentdn
is not the parent of
parentdn
Parameter block
slapi_dn_normalize_case()
is the parent of
childdn
.
childdn
slapi_dn_normalize_case()
to
.
to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents