20.9. slapi_be_getsuffix()

Description

This function returns the n+1 suffix associated with the specified backend. This function is still present for compatibility purposes with previous versions of the Directory Server Plug-in API. Current versions of Directory Server do not support backends containing multiple suffixes; so, if n is not 0, NULL will be returned.

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.
Returns

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

Memory Concerns

You should not free the returned pointer.