ber_get_enum - Linux
Overview
ber_get_enum retrieves the BerEnum value from an LDAP message.
Syntax
ber_get_enum(ber, tag)
| Parameter | Description |
|—|—|
| ber | The BER element to read. |
| tag | The BER tag of the element to read. |
Options/Flags
None.
Examples
ber_get_enum(ber, LDAP_TAG_ENUMERATED)
Common Issues
Make sure that the BER element contains an enumerated value.
Integration
ber_get_enum can be used with the ldap library to read BER elements from LDAP messages.
Related Commands
- ber_get_string
- ber_get_int
- ber_get_bitstring