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

slapi_sdn_get_suffix()

Returns a pointer to the DN of the suffix containing the target.

Syntax

#include "slapi-plugin.h"
Slapi_DN* slapi_sdn_get_suffix(const Slapi_DN *target_sdn);

Parameters

This function takes the following parameter:

target_sdn

DN of the target entry whose suffix you want.

Returns

This function returns a pointer to a Slapi_DN structure containing the base DN of the suffix for the entry with target_sdn, or NULL if that suffix is not available.

Memory Concerns

Free the structure returned using slapi_sdn_free().