Chapter 15. Distribution Routines
Table 15.1. Distribution Routines
| Function | Description |
|---|---|
| distribution_plugin_entry_point() | Allows for backend distribution. |
15.1. distribution_plugin_entry_point()
Backend distribution is the capability to span the LDAP subtree contents under a specified DIT node into multiple backends in the same server and/or database links to other servers. Under such a configuration, this function is responsible for deciding where the database or database link under the DIT node will be applied. This function will be called for every operation reaching a DIT node, including subtree search operations that are started above the node.
This function should return the index of the backend in the mtn_be_names table that is used to resolve the current operation. For search operations, SLAPI_BE_ALL_BACKENDS can be returned to specify that backends must be searched. The use of SLAPI_BE_ALL_BACKENDS for non-search operations is not supported and may give random results.
#include "slapi-plugin.h" int distribution_plugin_entry_point (Slapi_PBlock *pb, Slapi_DN *target_dn, char **mtn_be_names, int be_count, Slapi_DN * node_dn);
This function takes the following parameters:
| pb | Pointer to the parameter block of the operation. |
| target_dn | Pointer to the target DN of the operation. |
| mtn_be_names | Pointer to the list of names of backends declared for this node. |
| be_count | The number of backends declared under a specified DIT node. |
| node_dn | DN of the node where the distribution function is set. |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.