HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
“slapi_rdn_new_dn()”
“slapi_rdn_new_rdn()”
37.23 slapi_rdn_remove()
This function removes the RDN from rdn that matches the given criteria (type, value, and
length).
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:
The target Slapi_RDN structure.rdn
Type (cn, o, ou, etc.) of the RDN searched.type
The value of the RDN searched.
value
Gives the length of value that should be taken into account for the string comparisons
when searching for the RDN.
length
Returns This function returns one of the following values:
1 if the RDN is removed from rdn.
0 if no RDN is removed.
See also
“slapi_rdn_remove_attr()”
“slapi_rdn_remove_index()”
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:
The target Slapi_RDN structure.rdn
Type (cn, o, ou, etc.) of the RDN searched.type
Returns This function returns one of the following values:
1 if the RDN is removed from rdn.
0 if no RDN is removed.
See also
“slapi_rdn_remove()”
“slapi_rdn_remove_index()”
37.25 slapi_rdn_remove_index()
Description This function removes an RDN type/value pair from a Slapi_RDN structure with
atindex index (placed in the atindex+1 position).
Syntax
304 Functions for managing RDNs