Breaks a relative distinguished name into its components.
#include <ldap.h>
char **ldap_explode_rdn (
const char *rdn,
int notypes);
(IN) Points to the relative distinguished name of the entry.
(IN) Specifies whether the name should include type information:
If zero, type information is included, for example "cn=Kim".
If non-zero, type information is stripped, for example "cn=Kim" becomes "Kim".
The ldap_explode_rdn returns a NULL-terminated character array with or without types as indicated by the notypes parameter. The components are returned in the order they appear in the rdn.
For example, if the rdn is "ou=sales+cn=kim", tThe function returns the following array: { "ou=sales", "cn=kim", NULL}.
When the array is no longer in use, free the memory by calling the ldap_value_free function.