Show Table of Contents
39.20. slapi_sdn_isparent()
Checks whether a DN is the parent of a given DN.
Syntax
#include "slapi-plugin.h" int slapi_sdn_isparent( const Slapi_DN *parent, const Slapi_DN *child );
Parameters
This function takes the following parameters:
|
parent
| Pointer to the Slapi_DN structure containing the DN which claims to be the parent of the DN in child. |
|
child
| Pointer to the Slapi_DN structure containing the DN of the supposed child of the DN in the structure pointed to by parent. |
Returns
This function returns one of the following values:
- 1 if the DN in parent is the parent of the DN in child.
- 0 if the DN in parent does not match the DN of the parent of the DN in child.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.