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

slapi_be_getsuffix()

Returns the DN of the nth suffix associated with the specified backend.

Syntax

#include "slapi-plugin.h"
 const Slapi_DN *slapi_be_getsuffix(Slapi_Backend *be, int n);

Parameters

This function takes the following parameters:

be

Pointer to the structure containing the backend configuration.

n

Index, starting from 0.

Returns

This function returns the DN of the suffix if it exists, or NULL if there is no nth suffix in the backend.

Description

This function returns the nth suffix, counting from 0, associated with the specified backend. This function is present for compatibility purposes with previous versions of the Directory Server Plug-In API.

Memory Concerns

You should not free the returned pointer.