ldap_first_entry, ldap_next_entry, ldap_count_entries − LDAP result entry parsing and counting routines
OpenLDAP LDAP (libldap, −lldap)
int ldap_count_entries( LDAP *ld, LDAPMessage *result )
LDAPMessage *ldap_first_entry( LDAP *ld, LDAPMessage *result )
LDAPMessage *ldap_next_entry( LDAP *ld, LDAPMessage *entry )
The ldap_first_entry() routine is used to retrieve the first entry in a chain of search results. It takes the result as returned by a call to ldap_result(3) or ldap_search_s(3) or ldap_search_st(3) and returns a pointer to the first entry in the result.
This pointer should be supplied on a subsequent call to ldap_next_entry() to get the next entry, the result of which should be supplied to the next call to ldap_next_entry(), etc. ldap_next_entry() will return NULL when there are no more entries. The entries returned from these calls are used in calls to the routines described in ldap_get_dn(3), ldap_first_attribute(3), ldap_get_values(3), etc.
A count of the number of entries in the search result can be obtained by calling ldap_count_entries().
If an error occurs in ldap_first_entry() or ldap_next_entry(), NULL is returned and the ld_errno field in the ld parameter is set to indicate the error. If an error occurs in ldap_count_entries(), -1 is returned, and ld_errno is set appropriately. See ldap_error(3) for a description of possible error codes.
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from University of Michigan LDAP 3.3 Release.
More Linux Commands
XCompositeRedirectSubwindows(3) - X Composite Extension libr
The composite extension provides several related mechanisms: Per-hierarchy storage The rendering of an entire hierarchy of windows is redirected to off-screen s
man(1) - an interface to the on-line reference manuals......
man is the systems manual pager. Each page argument given to man is normally the name of a program, utility or function. The manual page associated with each of
setsid(2) - creates a session and sets the process group ID
setsid() creates a new session if the calling process is not a process group leader. The calling process is the leader of the new session, the process group lea
pam_syslog(3) - send messages to the system logger (ManPage)
The pam_syslog function logs messages using syslog(3) and is intended for internal use by Linux-PAM and PAM service modules. The priority argument is formed by
aulastlog(8) a program similar to lastlog - Linux man page
aulastlog is a program that prints out the last login for all users of a machine similar to the way lastlog does. The login-name, port, and last login time will
gnutls_pkcs11_obj_export(3) - API function - Linux man page
This function will export the PKCS11 object data. It is normal for data to be inaccesible and in that case GNUTLS_E_INVALID_REQUEST will be returned. If the buf
glPixelMapuiv(3gl) - set up pixel transfer maps (Man Page)
glPixelMap sets up translation tables, or maps, used by glCopyPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D, glCopyTexSub
LIST_ENTRY(3) implementations of lists, tail queues, and cir
These macros define and operate on three types of data structures: lists, tail queues, and circular queues. All three structures support the following functiona
pcre16_get_substring(3) Perl-compatible regular expressions
This is a convenience function for extracting a captured substring. The arguments are: subject Subject that has been successfully matched ovector Offset vector
rendercheck(1) - simple tests of the X Render extension.....
rendercheck is a set of simple tests of the X Render extension. It is designed for authors of Render implementations in X Servers. OPTIONS -d|--display display
Mail::SPF::Mech::A(3pm) - SPF record "a" mechanism class....
An object of class Mail::SPF::Mech::A represents an SPF record mechanism of type a. Constructors The following constructors are provided: new(%options): returns
gethostbyname_r(3) - get network host entry - Linux man page
The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete. Applications should use getaddrinfo(3), getnameinfo(3), and gai_strerr