ldap_explode_dn() function converts a distinguished name (DN) into its component parts. For more information, see "Getting the Components of a Distinguished Name" on page 129.
#include <ldap.h>
char ** ldap_explode_dn( const char *dn, int notypes );
dn | Distinguished name (DN) that you want separated into components. |
notypes |
ldap_explode_dn( "uid=bjensen, ou=People, o=Airius.com", 0 )returns this array:
{ "uid=bjensen", "ou=People", "ou=Airius.com", NULL }
If you change the notypes parameter from 0 to 1:
ldap_explode_dn( "uid=bjensen, ou=People, o=Airius.com", 1 )the component names are not returned in the array:
{ "bjensen", "People", "Airius.com", NULL }
ldap_explode_rdn(), ldap_get_dn().
Last Updated: 10/01/98 17:06:23