z/OS IBM Tivoli Directory Server Client Programming for z/OS
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ldap_count_attributes()

z/OS IBM Tivoli Directory Server Client Programming for z/OS
SA23-2295-00

Purpose

Return the number of attributes in an LDAP search entry

Format

#include <ldap.h> 

int ldap_count_attributes(
    LDAP *                         ld,
    LDAPMessage *                  entry)

Parameters

Input

ld
Specifies the LDAP handle.
entry
Specifies the LDAP entry returned by the ldap_first_entry() or ldap_next_entry() routine.

Usage

The ldap_count_attributes() routine returns the number of attributes in an LDAP search entry.

Function return value

The function return value is the number of attributes in the entry or -1 if an error is detected. When the return value is -1, the application can call the ldap_get_errno() routine to get the error code.

The following are some common errors for this routine:
LDAP_PARAM_ERROR
A parameter is not valid.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014