#include <ldap.h>
struct berval {
unsigned long bv_len;
char *bv_val;
};
struct berval **ldap_get_values_len(
LDAP *ld,
LDAPMessage *entry,
char *attr)
|
The ldap_get_values_len() function is used to retrieve attribute values that are binary in nature from an LDAP entry as returned by ldap_first_entry() or ldap_next_entry().
ldap_get_values_len() uses the same parameters as ldap_get_values(), but returns a NULL-terminated array of pointers to berval structures, each containing the length of and a pointer to a value.
No OS/400 authority is required. All authority checking is done by the LDAP server.
ldap_get_values_len() 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 set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_get_values_len API.
ldap_get_values() -- Return an attribute's values.
ldap_count_values() -- Return number of values.
ldap_count_values_len() -- Return number of binary values.
ldap_value_free() -- Free memory allocated by ldap_get_values.
ldap_value_free_len() -- Free memory allocated by ldap_get_values_len.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |