Share via


Other LDAP Functions (Windows Embedded CE 6.0)

1/6/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 BerElement structure.

ber_bvdup

This function creates a copy of the supplied berval structure.

ber_bvecfree

This function frees an array of berval structures.

ber_bvfree

This function frees a berval structure.

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 BerElement structure. It returns the tag and length of the first element.

ber_flatten

This function allocates a new berval structure containing the data taken from the supplied BerElement structure.

ber_free

This function frees a BerElement structure that was previously allocated with a call to the ber_alloc_t or ber_init function.

ber_init

This function allocates a new BerElement structure containing the data taken from the supplied berval structure.

ber_next_element

This function is used along with the ber_first_element function to traverse a SET, SET OF, SEQUENCE, or SEQUENCE OF data values stored in the supplied BerElement structure. 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 BerElement structure.

ber_printf

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

ber_scanf

This function is used to decode a basic encoding rules (BER) element in much the same way that sscanf works. One important difference, though, is that some state information is kept with the pBerElement argument so that multiple calls can be made to ber_scanf to sequentially read from the BER element. The pBerElement argument should be a pointer to a BerElement structure returned by a call to the ber_init function.

ber_skip_tag

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

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

Reference

LDAP Functions
LDAP Session Functions
LDAP Directory Entry Functions
LDAP Search Functions
LDAP Error Handling Functions
LDAP Memory Management Functions
LDAP Callback Functions