ldap_explode_dn function (winldap.h)
The ldap_explode_dn function breaks up an entry name into its component parts.
WINLDAPAPI PCHAR *LDAPAPI ldap_explode_dn(
[in] const PSTR dn,
[in] ULONG notypes
);
[in] dn
A pointer to a null-terminated string that contains the distinguished name to explode. The string that this pointer refers to cannot be a constant string.
[in] notypes
Indicates whether the type information components should be removed.
If the function succeeds, it returns a null-terminated character array containing the relative distinguished name components of the distinguished name supplied.
Call ldap_explode_dn 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 ldap_value_free.
Calling ldap_explode_dn with a pointer to a constant string will cause the function to fail.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | winldap.h |
Library | Wldap32.lib |
DLL | Wldap32.dll |