Back to index

openldap  2.4.31
Functions | Variables
addrdnvalues.c File Reference
#include <string.h>
#include <unistd.h>
#include <ldap.h>
#include <lber.h>
#include <slapi-plugin.h>

Go to the source code of this file.


int addrdnvalues_preop_init (Slapi_PBlock *pb)
static int addrdnvalues_preop_add (Slapi_PBlock *pb)


static Slapi_PluginDesc pluginDescription

Function Documentation

static int addrdnvalues_preop_add ( Slapi_PBlock *  pb) [static]

Definition at line 39 of file addrdnvalues.c.

       int rc;
       Slapi_Entry *e;

       if (slapi_pblock_get(pb, SLAPI_ADD_ENTRY, &e) != 0) {
              slapi_log_error(SLAPI_LOG_PLUGIN, "addrdnvalues_preop_add",
                            "Error retrieving target entry\n");
              return -1;

       rc = slapi_entry_add_rdn_values(e);
       if (rc != LDAP_SUCCESS) {
              slapi_send_ldap_result(pb, LDAP_OTHER, NULL,
                     "Failed to parse distinguished name", 0, NULL);
              slapi_log_error(SLAPI_LOG_PLUGIN, "addrdnvalues_preop_add",
                     "Failed to parse distinguished name: %s\n",
              return -1;

       return 0;

Here is the call graph for this function:

Here is the caller graph for this function:

int addrdnvalues_preop_init ( Slapi_PBlock *  pb)

Definition at line 63 of file addrdnvalues.c.

Here is the call graph for this function:

Variable Documentation

Initial value:
       "RDN values addition plugin"

Definition at line 32 of file addrdnvalues.c.