Positions the state of a BerElement to the next element and returns its type.
#include <ldap.h> or <lber.h>
ber_tag_t ber_next_element (
BerElement *ber,
ber_len_t *lenPtr,
char *opaquePtr);
(IN) Points to a BerElement structure.
(OUT) Is used for internal use only. Points to the value returned by the ber_first_element function. On subsequent calls, points to the value returned by the ber_next_element function.
(OUT) Is used for internal use only. Points to the value returned by the ber_first_element function. On subsequent calls, points to the value returned by the ber_next_element function.
On success, returns a tag indicating the type of the next element. Returns LBER_DEFAULT if there are no further elements.
Use the ber_scanf function to obtain the value of the element.