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


This function returns a pointer to the backend structure of the first backend. If you wish to iterate through all of the backends, use this function in conjunction with slapi_get_next_backend(). For example:

Slapi_Backend *be = NULL;
char *cookie = NULL;
be = slapi_get_first_backend (&cookie);
while (be)
    be = slapi_get_next_backend (cookie);
slapi_ch_free ((void**)&cookie);