If you want to determine if a DN is the same as the suffix for the local database, call the slapi_dn_isbesuffix() function instead.
Syntax
#include "slapi-plugin.h" int slapi_dn_issuffix( const char *dn, const char *suffix ); Note that in the Netscape Directory Server 3.x releases, the arguments were not declared with const:
#include "slapi-plugin.h" int slapi_dn_issuffix( const char *dn, const char *suffix );
int slapi_dn_issuffix( char *dn, char *suffix ); Parameters
int slapi_dn_issuffix( char *dn, char *suffix );
The function has the following parameters:
dn
suffix
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.