Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_get_suffix_list()

Returns an array of suffix DNs handled by the server.

Syntax

#include "slapi-plugin.h"
Slapi_DN ** slapi_get_suffix_list(int show_private, int *count);

Parameters

This function takes the following parameters:

show_private

If set to 1, this list of DNs returned includes suffixes used by Directory Server that do not contain user data. Otherwise, only DNs of suffixes containing user data are returned.

count

Placeholder to contain the number of suffixes in the list.

Returns

This function returns a pointer to an array of Slapi_DN structures containing the base DNs of the suffixes. The count parameter contains the number of suffixes whose DNs are returned.

Memory Concerns

Free the list returned using slapi_free_suffix_list().