slapi_dn_normalize_case()

slapi_dn_normalize_case() converts a distinguished name (DN) to canonical format. It means no leading or trailing spaces, no spaces between components, and no spaces around the equals sign and converts all characters to lowercase.

Note: A variable that is passed in as the DN argument is also converted in-place, therefore this API is deprecated. See slapi_dn_normalize_case_v3().
For example, for the following DN,
cn = John Doe, ou = Engineering , o = Darius
the function returns:
cn=John Doe,ou=Engineering,o=Darius
Syntax
#include "slapi-plugin.h"
char *slapi_dn_normalize_case ( char *dn );
Parameters
dn
The DN that you want to normalize and convert to lowercase.
Returns
The normalized DN with all characters in lowercase.