BerElement represents data encoded using the Basic Encoding Rules (BER). BerElement is not completely defined in ldap.h because the fields within the structure are not intended to be accessible to clients.
Calling the ldap_first_attribute() function allocates a BerElement structure in memory. You use this structure to keep track of the current attribute. When you are done reading attributes in an entry, you need to free the BerElement structure from memory by calling the ldap_ber_free() function.
Last Updated: 10/01/98 17:05:28