Checks whether a Slapi_RDN structure holds any RDN matching a given type/value pair.
#include "slapi-plugin.h" int slapi_rdn_contains(Slapi_RDN *rdn, const char *type, const char *value,size_t length);
This function takes the following parameters:
The Slapi_RDN structure containing the RDN value(s).
The type (cn, o, ou , etc.) of the RDN searched.
The value of the RDN searched.
Gives the length of value that should be taken into account for the string operation when searching for the RDN.
This function returns 1 if rdn contains an RDN that matches the type, value and length, or 0 if no RDN matches the desired type/value.
This function searches for an RDN inside of the Slapi_RDN structure rdn that matches both type and value as given in the parameters. This function makes a call to slapi_rdn_get_index() and verifies that the returned value is anything but -1.