Determines whether or not a particular DN is the parent of another specified DN. Before calling this function, you should call slapi_dn_normalize_case() to normalize the DNs and convert all characters to lowercase.
#include "slapi-plugin.h" int slapi_dn_isparent( const char *parentdn, char *childdn );
This function takes the following parameters:
Determine if this DN is the parent of childdn.
Determine if this DN is the child of parentdn.
This function returns a non-zero value if parentdn is the parent of childdn, or 0 if the parentdn is not the parent of childdn.