Determines if a DN is equal to the specified suffix. Before calling this function, you should call slapi_dn_normalize_case() to normalize the DN and convert all characters to lowercase.
If you want to determine if a DN is the same as the suffix for the local database, call the slapi_dn_isbesuffix_norm() function instead.
#include "slapi-plugin.h" int slapi_dn_issuffix( const char *dn, const char *suffix );
This function takes the following parameters:
DN that you want to check.
Suffix that you want compared against the DN.
This function returns 1 if the specified DN is the same as the specified suffix, or 0 if the DN is not the same as the suffix.