37.23. slapi_rdn_remove()

This function removes the RDN from rdn that matches the given criteria (type, value, and length).
Syntax

#include "slapi-plugin.h"
int slapi_rdn_remove(Slapi_RDN *rdn, const char *type, const char *value, size_t length);

Parameters

This function takes the following parameters:

rdn
The target Slapi_RDN structure.
type
Type (cn, o, ou, etc.) of the RDN searched.
value
The value of the RDN searched.
length
Gives the length of value that should be taken into account for the string comparisons when searching for the RDN.
Returns

This function returns one of the following values:

  • 1 if the RDN is removed from rdn.
  • 0 if no RDN is removed.