Slapi_Dn_Issuffix(); Slapi_Dn_Normalize() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

slapi_dn_issuffix()

Determines whether 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
0
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()
DN that you want to check.
Suffix that you want compared against the DN.
if the specified DN is the same as the specified suffix.
if the specified DN is not the same as the specified suffix.
function instead.
Functions for Managing DNs
to normalize the DN and
Chapter 15
Function Reference
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents