#include <nwnet.h> or #include <nwdsname.h>NWDSCCODE N_API NWDSRemoveAllTypes (NWDSContextHandle context, pnstr8 name, pnstr8 typelessName);
An example of removing types is NWDSRemoveAllTypes takes the typed name
CN=Bob.OU=Marketing.O=WimpleMakers
and returns the untyped name
Bob.Marketing.WimpleMakers
Removal of types is not done relative to the current name context. Therefore, it is not guaranteed that NWDSCanonicalizeName can restore the correct types.
The caller must allocate the memory pointed to by typelessName. The size of the memory is (MAX_DN_CHARS+1)*sizeof(character size), where character size is 1 for single-byte characters, and 2 for double-byte characters (Unicode is double byte). One character is used for NULL termination.
If the name is already untyped, the same untyped name will be returned.
Directory