Retrieves a list of field names in a null-terminated array.
#include <ldap.h>
int ldap_schema_get_field_values (
LDAPSchemaElement *element,
char *fieldName,
char *(*values[]));
(IN) Handle to a Schema element.
(IN) Name of the field for which values are requested. See Section 6.11, Schema Element Types.
(OUT) Null-terminated array of string pointers containing the values for a field. Free this memory with ldap_value_free.
See the LDAP Return Codes
for return values.
Valid field names are listed in Section 6.11, Schema Element Types. Some fields, although valid, may not have values (For example, LDAP_SCHEMA_OBSOLETE.) In this case values will be NULL and the return value will be LDAP_SUCCESS. If the field name does not exist values will be NULL and LDAP_NO_SUCH_ATTRIBUTE is returned.