37.24. slapi_rdn_remove_attr()

This function removes the first RDN from a Slapi_RDN structure matches the given type.
Syntax

#include "slapi-plugin.h"
int slapi_rdn_remove_attr(Slapi_RDN *rdn, const char *type);

Parameters

This function takes the following parameters:

rdn
The target Slapi_RDN structure.
type
Type (cn, o, ou, etc.) of the RDN searched.
Returns

This function returns one of the following values:

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