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

slapi_rdn_add()

Adds a new RDN to an existing Slapi_RDN structure.

Syntax

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

Parameters

This function takes the following parameters:

rdn

The target Slapi_RDN structure.

type

The type (cn, o, ou , etc.) of the RDN to be added. This parameter cannot be NULL.

value

The value of the RDN to be added. This parameter cannot be NULL.

Returns

This function always returns 1.

Description

This function adds a new type/value pair to an existing RDN, or sets the type/value pair as the new RDN if rdn is empty. This function resets the FLAG_RDNS flags, which means that the RDN array within the Slapi_RDN structure is no longer current with the new RDN.

See Also

slapi_rdn_get_num_components()