Other LDAP Functions (Compact 2013)
3/26/2014
This section describes additional LDAP functions
In This Section
- ber_alloc_t
Allocates and constructs a new BerElement structure
- ber_bvecfree
Frees an array of berval structures
- ber_bvfree
Frees a berval structure
- ber_first_element
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
Allocates a new berval structure containing the data taken from the supplied BerElement structure
- ber_free
Frees a BerElement structure that was previously allocated with a call to the ber_alloc_t or ber_init function.
- ber_init
Allocates a new BerElement structure containing the data taken from the supplied berval structure
- ber_next_element
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
Returns the tag of the next element to be parsed in the supplied BerElement structure
- ber_printf
Encodes 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
Decodes 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
Skips the current tag and returns the tag of the next element in the supplied BerElement structure
- ldap_dn2ufn
Converts a distinguished name to a user-friendly format
- ldap_explode_dn
Converts a distinguished name to a user-friendly format
- ldap_get_dn
Retrieves the distinguished name for a given entry
- ldap_ufn2dn
Converts a user-friendly name to a distinguished name
- LdapUnicodeToUTF8
Converts Unicode strings to UTF-8
- LdapUTF8ToUnicode
This function translates strings for modules that do not have the UTF-8 code page