Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows additional LDAP functions with a description of the purpose of each.

Programming element Description

ber_alloc_t

This function allocates and constructs a new BerElementstructure.

ber_bvdup

This function creates a copy of the supplied bervalstructure.

ber_bvecfree

This function frees an array of bervalstructures.

ber_bvfree

This function frees a bervalstructure.

ber_first_element

This function is used to begin the traversal of a SET, SET OF, SEQUENCE, or SEQUENCE OF data values stored in the supplied BerElementstructure. It returns the tag and length of the first element.

ber_flatten

This function allocates a new bervalstructure containing the data taken from the supplied BerElementstructure.

ber_free

This function frees a BerElementstructure that was previously allocated with a call to the ber_alloc_tor ber_initfunction.

ber_init

This function allocates a new BerElementstructure containing the data taken from the supplied bervalstructure.

ber_next_element

This function is used along with the ber_first_elementfunction to traverse a SET, SET OF, SEQUENCE, or SEQUENCE OF data values stored in the supplied BerElementstructure. It returns the tag and length of the next element in the constructed type.

ber_peek_tag

This function returns the tag of the next element to be parsed in the supplied BerElementstructure.

ber_printf

This function is used to encode a basic encoding rules (BER) element in much the same way that sprintfworks. One important difference, though, is that state information is kept in the pBerElement argument so that multiple calls can be made to ber_printfto append to the end of the BER element. The pBerElementargument passed to this function must be a pointer to a BerElementstructure returned by a call to the ber_alloc_tfunction.

ber_scanf

This function is used to decode a basic encoding rules (BER) element in much the same way that sscanfworks. One important difference, though, is that some state information is kept with the pBerElementargument so that multiple calls can be made to ber_scanfto sequentially read from the BER element. The pBerElementargument should be a pointer to a BerElementstructure returned by a call to the ber_initfunction.

ber_skip_tag

This function skips the current tag and returns the tag of the next element in the supplied BerElementstructure.

ldap_dn2ufn

This function converts a distinguished name to a user-friendly format.

ldap_explode_dn

This function converts a distinguished name to a user-friendly format.

ldap_get_dn

This function retrieves the distinguished name for a given entry.

ldap_ufn2dn

This function converts a user-friendly name to a distinguished name.

LdapUnicodeToUTF8

This function converts Unicode strings to UTF-8.

LdapUTF8ToUnicode

This function translates strings for modules that do not have the UTF-8 code page.

See Also