LDAPAPIInfo

Contains information about the vendor's implementation of the LDAP API.

Structure

  
  
  typedef struct ldapapiinfo {
     int      ldapai_info_version;
     int      ldapai_api_version;
     int      ldapai_protocol_version;
     char   **ldapai_extensions;
     char    *ldapai_vendor_name;
     int      ldapai_vendor_version;
  } LDAPAPIInfo;
  

Fields

ldapai_info_version

Specifies the version of the LDAPAPIInfo structure.

ldapai_api_version

Specifies the revision of the API supported.

ldapai_protocol_version

Specifies the highest LDAP version supported by the LDAP library.

ldapai_extensions

Points to a NULL-terminated array of character strings that names the vendor's LDAP extensions. If no API extensions are supported, this field is set to NULL. The application is responsible for freeing this memory by calling the ldap_value_free function.

ldapai_vendor_name

Points to the vendor's name. The application is responsible for freeing this memory by calling the ldap_memfree function.

ldapai_vendor_version

Specifies the vendor's version of the LDAP libraries.

Remarks

To retrieve more information about an extension (the ldapai_extensions field), call the ldap_get_option function with the option parameter set to LDAP_OPT_API_FEATURE_INFO.