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

slapi_be_select_by_instance_name()

Find the backend used to service the database.

Syntax

#include "slapi-plugin.h"
 Slapi_Backend *slapi_be_select_by_instance_name( const char *name );

Parameters

This function takes the following parameter:

name

Pointer to the value of the CN for the backend whose structure you want, such as userRoot.

Returns

This function returns NULL if no backend with the appropriate name is configured. Otherwise, it returns a pointer to the backend structure.

Description

This function finds the backend that should used to service the database named as the parameter.

Memory Concerns

You should not free the returned pointer.

See Also

slapi_be_select()