Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 262

Table of Contents

Advertisement

Functions for Managing DNs
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
Syntax
#include "slapi-plugin.h"
char *slapi_dn_normalize( char *dn );
Parameters
This function takes the following parameters:
dn
Returns
This function returns the normalized DN. Note that variable passed in as the
argument is also converted in place.
See Also
slapi_dn_normalize_to_end()
slapi_dn_normalize_case()
slapi_dn_normalize_case()
Converts a distinguished name (DN) to canonical format and converts all
characters to lowercase. Calling this function has the same effect as calling the
slapi_dn_normalize()
function.
Syntax
#include "slapi-plugin.h"
char *slapi_dn_normalize_case( char *dn );
262
Netscape Directory Server Plug-In Programmer's Guide • May 2002
DN that you want to normalize.
function followed by the
slapi_dn_ignore_case()
dn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents