LDAP_FIRST_ATTRIBUTE(3LDAP) | LDAP Library Functions | LDAP_FIRST_ATTRIBUTE(3LDAP) |
cc [ flag...] file... -lldap[ library...] #include <lber.h> #include <ldap.h> char *ldap_first_attribute(LDAP *ld, LDAPMessage *entry, BerElement **berptr);
char *ldap_next_attribute(LDAP *ld, LDAPMessage *entry, BerElement *ber);
The ldap_first_attribute() function returns the name of the first attribute in the entry. To get the value of the first attribute, pass the attribute name to the ldap_get_values() function or to the ldap_get_values_len() function.
The ldap_next_attribute() function gets the value of the next attribute in an entry.
After stepping through the attributes, the application should call ber_free() to free the BerElement structure allocated by the ldap_first_attribute() function if the structure is other than NULL.
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
May 13, 2017 | OmniOS |