Functions
This section describes the API functions supported in LDAP 2 and 3. The table of contents lists the functions in alphabetical order. The following functions are grouped by task.
Starting and Stopping an LDAP Session
Use these functions to initialize and open a connection block, authenticate a client to a server, set options for the LDAP session, and close a session.
- cldap_open
- ldap_open
- ldap_bind
- ldap_bind_s
- ldap_simple_bind
- ldap_simple_bind_s
- ldap_sasl_bind
- ldap_sasl_bind_s
- ldap_connect
- ldap_init
- ldap_sslinit
- ldap_get_option
- ldap_set_option
- ldap_abandon
- ldap_unbind
- ldap_unbind_s
- ldap_cleanup
Modifying Directory Entries
Use these functions to perform operations on directory entries.
- ldap_add
- ldap_add_ext
- ldap_add_s
- ldap_add_ext_s
- ldap_compare
- ldap_compare_ext
- ldap_compare_s
- ldap_compare_ext_s
- ldap_delete
- ldap_delete_ext
- ldap_delete_s
- ldap_delete_ext_s
- ldap_extended_operation_s
- ldap_extended_operation
- ldap_close_extended_op
- ldap_modify
- ldap_modify_ext
- ldap_modify_s
- ldap_modify_ext_s
Searching, Sorting, and Result Handling
Use these functions to search a directory or sort and parse results, with or without controls.
- ldap_check_filter
- ldap_count_entries
- ldap_count_references
- ldap_count_values
- ldap_count_values_len
- ldap_create_page_control
- ldap_create_sort_control
- ldap_create_vlv_control
- ldap_encode_sort_control
- ldap_escape_filter_element
- ldap_first_attribute
- ldap_next_attribute
- ldap_first_entry
- ldap_next_entry
- ldap_first_reference
- ldap_next_reference
- ldap_get_next_page
- ldap_get_next_page_s
- ldap_get_paged_count
- ldap_get_values
- ldap_get_values_len
- ldap_parse_extended_result
- ldap_parse_page_control
- ldap_parse_reference
- ldap_parse_result
- ldap_parse_sort_control
- ldap_parse_vlv_control
- ldap_result
- ldap_search
- ldap_search_s
- ldap_search_st
- ldap_search_ext
- ldap_search_ext_s
- ldap_search_init_page
- ldap_search_abandon_page
Error Handling
Use these functions to handle errors.
Memory Management
Use these functions to explicitly free data structures when no longer required.
Miscellaneous Functions
Use these functions to convert the forms of distinguished names, modify entry names, convert text strings, and set debugging options.
- ldap_dn2ufn
- ldap_ufn2dn
- ldap_explode_dn
- ldap_get_dn
- ldap_conn_from_msg
- ldap_modrdn2
- ldap_modrdn2_s
- ldap_rename_ext
- ldap_rename_ext_s
- LdapUnicodeToUTF8
- LdapUTF8ToUnicode
- ber_init
- ber_free
- ber_bvfree
- ber_bvecfree
- ber_bvdup
- ber_alloc_t
- ber_skip_tag
- ber_peek_tag
- ber_first_element
- ber_next_element
- ber_flatten
- ber_printf
- ber_scanf