37.2. slapi_rdn_compare()

Description

This function compares rdn1 and rdn2. For rdn1 and rdn2 to be considered equal RDNs, their components do not necessarily have to be in the same order.

Syntax

#include "slapi-plugin.h"
int slapi_rdn_compare(Slapi_RDN *rdn1, Slapi_RDN *rdn2);

Parameters

This function takes the following parameters:

rdn1
The first RDN to compare.
rdn2
The second RDN to compare.
Returns

This function returns one of the following values:

  • 0 if rdn1 and rdn2 have the same RDN components.
  • -1 if they do not have the same components.