slapi_dn_issuffix()
Determines whether or not a DN is equal to the specified suffix. Before calling this
function, you should call
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()
Syntax
#include "slapi-plugin.h"
int slapi_dn_issuffix( const char *dn, const char *suffix );
Parameters
This function takes the following parameters:
dn
suffix
Returns
This function returns one of the following values:
•
1 if the specified DN is the same as the specified suffix.
•
0 if the specified DN is not the same as the specified suffix.
See Also
slapi_dn_isparent()
slapi_dn_normalize()
Convert a distinguished name (DN) to canonical format (no leading or trailing
spaces, no spaces between components, and no spaces around the equals sign). For
example, given the following DN:
cn = Moxie Cross , ou = Engineering , o = Example
the function returns:
cn=Moxie Cross,ou=Engineering,o=Example
slapi_dn_normalize_case()
function instead.
DN that you want to check.
Suffix that you want compared against the DN.
Functions for Managing DNs
to normalize the DN and
Chapter 15
Function Reference
303