39.21. slapi_sdn_issuffix()

Checks whether a Slapi_DN structure contains a suffix of another Slapi_DN structure.
Syntax

#include "slapi-plugin.h"
int slapi_sdn_issuffix(const Slapi_DN *sdn, const Slapi_DN *suffixsdn);

Parameters

This function takes the following parameters:

sdn
Pointer to the Slapi_DN structure to be checked.
suffixsdn
Pointer to the Slapi_DN structure of the suffix.
Returns

This function returns one of the following values:

  • 1 if the DN is suffixsdn is the suffix of sdn.
  • 0 if the DN in suffixsdn is not a suffix of sdn.