#include <ldap.h> char **ldap_explode_dns( const char *dn)
The ldap_explode_dns() function takes a Domain Name System (DNS)-style distinguished name and breaks it up into its component parts.
ldap_explode_dns() returns a NULL-terminated array of character strings.
For example, the DNS-style distinguished name rochester.ibm.com would be returned as an array of components "rochester","ibm","com",NULL. The result can be freed by calling ldap_value_free().
No i5/OS authority is required.
If ldap_explode_dns() is not successful, no memory is available for the array or its components.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_explode_dns API. |
Top | LDAP APIs | APIs by category |