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

slapi_dn_isroot()

Determines if the specified DN is the root DN for this local database. Before calling this function, you should call slapi_dn_normalize_case() to normalize the DN and convert all characters to lowercase.

Syntax

#include "slapi-plugin.h"
int slapi_dn_isroot( Slapi_PBlock *pb, char *dn );

Parameters

This function takes the following parameters:

pb

Parameter block.

dn

DN that you want to check.

Returns

This function returns 1 if the specified DN is the root DN of the local database, or 0 if the DN is not the root DN.