The ldap_nextentry() function returns the next LDAP entry in the specified LDAP message.

The ldap_nextentry() function does not retrieve values. It returns a unique entry. The result can be used in a function like ldap_getvalues() to actually retrieve attribute values.

result = ldap_nextentry (LDAPEntry);
LDAPEntry Required. An LDAP entry that is returned by the previous ldap_firstentry() or ldap_nextentry().
LDAP_Entry An LDAP entry.
empty string Error condition.
result = ldap_nextentry (LDAPEntry);

For more information, please see the following: