#include <ldap.h>
int ldap_count_attributes(
LDAP *ld,
LDAPMessage *entry)
The ldap_count_attributes() function returns a count of the number of attributes in an LDAP entry.
No i5/OS authority is required.
The ldap_count_attributes() API returns -1 if a null entry is passed as input to ldap_count_attributes().
The following message may be sent from this function.
| Message ID | Error Message Text |
|---|---|
| CPF3CF2 E | Error(s) occurred during running of ldap_count_attributes API. |
| Top | LDAP APIs | APIs by category |