Function : Distinguished Name

DNCanonicalize - Canonicalizes an abbreviated distinguished name.
----------------------------------------------------------------------------------------------------------

#include <dname.h>

STATUS LNPUBLIC DNCanonicalize(
DWORD Flags,
const char far *TemplateName,
const char far *InName,
char far *OutName,
WORD OutSize,
WORD far *OutLength
);

Description :

This function converts a distinguished name in abbreviated format to canonical format. A fully distinguished name is in canonical format - it contains all possible naming components. The abbreviated format of a distinguished name removes the labels from the naming components.

Parameters :

Sample Usage :

     
char AbbrevName[MAXUSERNAME];
char CanonName[MAXUSERNAME];
WORD retLen;  

/* ... */

  error = DNCanonicalize (0L, NULL, AbbrevName, CanonName,
                          MAXUSERNAME, &retLen);    


See Also :

DNAbbreviate
----------------------------------------------------------------------------------------------------------