ldap_schema_get_field_values

Retrieves a list of field names in a null-terminated array.

Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  int ldap_schema_get_field_values (
     LDAPSchemaElement  *element,
     char                 *fieldName,
     char                  *(*values[]));
  

Parameters

element

(IN) Handle to a Schema element.

fieldName

(IN) Name of the field for which values are requested. See Section 6.11, Schema Element Types.

values

(OUT) Null-terminated array of string pointers containing the values for a field. Free this memory with ldap_value_free.

Return Values

See the LDAP Return Codes for return values.

Remarks

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.