HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Returns This function returns 0 if successful, -1 otherwise.
20.9 slapi_be_getsuffix()
Description This function returns the n+1 suffix associated with the specified back end. 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 back ends 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_Back end *be, int n);
Parameters This function takes the following parameters:
Pointer to the structure containing the back end configuration.
be
Index.
n
Returns This function returns the DN of the suffix if it exists, or NULL if there is no n+1 suffix
in the back end.
Memory concerns You should not free the returned pointer.
20.10 slapi_be_gettype()
Description Returns the type of the back end.
Syntax
#include "slapi-plugin.h"
const char * slapi_be_gettype(Slapi_Back end *be);;
Parameters This function takes the following parameter:
Pointer to the structure containing the back end configuration.
be
Returns This function returns the type of the back end.
Memory concerns You should not free the returned pointer.
20.11 slapi_be_is_flag_set()
Description Checks if a flag is set in the back end configuration.
Syntax
#include "slapi-plugin.h"
int slapi_be_is_flag_set(Slapi_Back end * be, int flag);
Parameters This function takes the following parameters:
Pointer to the structure containing the back end configuration.
be
Flag to check; for example, SLAPI_BE_FLAG_REMOTE_DATA.flag
Returns This function returns one of the following values:
0 If a flag is not set in the back end configuration.
1 I a flag is set in the back end configuration.
186 Functions for managing back end operations