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

slapi_rdn_remove()

Removes an RDN type/value pair from a Slapi_RDN structure.

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 1 if the RND is removed from rdn, or 0 if no RDN is removed.

Description

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

See Also

slapi_rdn_remove_attr()

slapi_rdn_remove_index()