Adds a new RDN to an existing Slapi_RDN structure.
#include "slapi-plugin.h" int slapi_rdn_add(Slapi_RDN *rdn, const char *type, const char *value);
This function takes the following parameters:
The target Slapi_RDN structure.
The type (cn, o, ou , etc.) of the RDN to be added. This parameter cannot be NULL.
The value of the RDN to be added. This parameter cannot be NULL.
This function always returns 1.
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.