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

slapi_dn_isparent()

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.

Syntax

#include "slapi-plugin.h"
int slapi_dn_isparent( const char *parentdn, char *childdn );

Parameters

This function takes the following parameters:

parentdn

Determine if this DN is the parent of childdn.

childdn

Determine if this DN is the child of parentdn.

Returns

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.

See Also

slapi_dn_issuffix()