Partager via


ldap_explode_dn (Compact 2013)

3/26/2014

This function breaks up an entry name into its component parts.

Syntax

UNICODE PTCHAR *ldap_explode_dn(
  UNICODE PTCHAR dn,
  ULONG notypes 
);

Parameters

  • dn
    [in] Distinguished name to explode.
  • notypes
    [in] Indicates whether the type information components should be removed.

Return Value

If this function succeeds, it returns a null-terminated character array containing the relative distinguished name components of the distinguished name supplied.

Remarks

Call this function to separate a distinguished name into its component parts. Set the notypes parameter to a nonzero value to remove type information, such as "cn=" from the components. The components of the relative distinguished name are returned in a character array. Free this array when it is no longer needed by calling the ldap_value_free function.

Requirements

Header

winldap.h

Library

wldap32.lib

See Also

Reference

Other LDAP Functions
ldap_value_free