20.16. slapi_be_select()

Description

Finds the backend that should be used to service the entry with the specified DN.

Syntax

#include "slapi-plugin.h"
Slapi_Backend *slapi_be_select( const Slapi_DN * sdn );

Parameters

This function takes the following parameter:

sdn Pointer to the DN of which you wish to get the backend.
Returns

This function returns one of the following values:

  • A pointer to the default backend if no backend with the appropriate suffix is configured.
  • A pointer to the backend structure.
Memory Concerns

You should not free the returned pointer.