Sun Java System Directory Server Enterprise Edition 6.3 Developer's Guide

slapi_dn_issuffix()

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.

Syntax

#include "slapi-plugin.h"
int slapi_dn_issuffix( const char *dn, const char *suffix );

Parameters

This function takes the following parameters:

dn

DN that you want to check.

suffix

Suffix that you want compared against the DN.

Returns

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.

See Also

slapi_dn_isparent()