#include <ldap.h>
char **ldap_get_values(
LDAP *ld,
LDAPMessage *entry,
const char *attr)
The ldap_get_values() function is used to retrieve attribute values from an LDAP entry as returned by ldap_first_entry() or ldap_next_entry(). ldap_get_values() uses the entry and the attribute attr whose values are wanted and returns a NULL-terminated array of the attribute's values. The returned array should be freed with ldap_value_free() when it is no longer needed.
Use ldap_get_values_len() to get binary attribute values.
No i5/OS authority is required.
The ldap_get_values() API will return NULL and set the ld_errno error code, if not successful. See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be sent from this function.
| Message ID | Error Message Text |
|---|---|
| CPF3CF2 E | Error(s) occurred during running of ldap_get_values API. |
| Top | LDAP APIs | APIs by category |