Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_dn_normalize()

Converts 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 , dc = example , dc = com

the function returns:

cn=Moxie Cross,ou=Engineering,dc=example,dc=com

Syntax

#include "slapi-plugin.h"
char *slapi_dn_normalize( char *dn );

Parameters

This function takes the following parameters:

dn

DN that you want to normalize.

Returns

This function returns the normalized DN. Notice that the variable passed in as the dn argument is also converted in place.

See Also

slapi_dn_normalize_to_end()

slapi_dn_normalize_case()