#include <ldap.h>
char **ldap_explode_rdn(
char *rdn,
int notypes)
|
The ldap_explode_rdn() function uses the relative distinguished name RDN (perhaps as returned by ldap_explode_dn()) and breaks it up into its component parts.
ldap_explode_rdn() returns a NULL-terminated array of character strings. The notypes parameter is used to request that only the component values be returned, not their types.
For example, the RDN "ou=Research+cn=Bob" would return as either {"ou=Research", "cn=Bob", NULL} or {"Research","Bob", NULL}, depending on whether notypes was 0 or 1, respectively. The result can be freed by calling ldap_value_free().
No OS/400 authority is required. All authority checking is done by the LDAP server.
If ldap_explode_rdn() is not successful, ld_errno will be set to indicate the error. See LDAP Client API Error Conditions for possible LDAP error code values. Use ldap_get_errno() function to retrieve the error information.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_explode_rdn API.
ldap_explode_dn() -- Break a Distinguished Name into Its Components.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |