Checks whether a DN is the parent of the parent of a given DN.
#include "slapi-plugin.h" int slapi_sdn_isgrandparent( const Slapi_DN *parent, const Slapi_DN *child );
This function takes the following parameters:
Pointer to the Slapi_DN structure containing the DN that claims to be the grandparent DN of the DN in child .
Pointer to the Slapi_DN structure containing the DN of the supposed “grandchild” of the DN in the structure pointed to by parent.
This function returns one of the following values:
1 if the DN in parent is the grandparent of the DN in child.
0 if the DN in parent does not match the DN of the grandparent of the DN in child.