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

slapi_entry_isroot()

Identifies whether the entry having the specified DN is a root DN (directory super user).

Syntax

#include "slapi-plugin.h"
into slapi_entry_isroot( const char *dn );

Parameters

This function takes the following parameter:

dn

The DN of the entry to check.

Returns

This function returns one of the following values:

0

The entry with the specified DN is that of a root user (directory super user).

1

The entry with the specified DN is not that of a root user.