Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_sdn_isgrandparent()

Checks whether a DN is the parent of the parent of a given DN.

Syntax

#include "slapi-plugin.h"
 int slapi_sdn_isgrandparent( 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 that claims to be the grandparent DN of the DN in child .

child

Pointer to the Slapi_DN structure containing the DN of the supposed “grandchild” of the DN in the structure pointed to by parent.

Returns

This function returns one of the following values:

See Also

slapi_sdn_get_parent()

slapi_sdn_isparent()

slapi_sdn_issuffix()