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

slapi_rdn_remove_attr()

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

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

Description

This function removes the first RDN from rdn that matches the given type.

See Also

slapi_rdn_remove()

slapi_rdn_remove_index()