SymfonyWorld Online 2022 Winter Edition


(PHP 4, PHP 5, PHP 7, PHP 8)

ldap_next_entryGet next result entry


ldap_next_entry(LDAP\Connection $ldap, LDAP\ResultEntry $entry): LDAP\ResultEntry|false

Retrieve the entries stored in the result. Successive calls to the ldap_next_entry() return entries one by one till there are no more entries. The first call to ldap_next_entry() is made after the call to ldap_first_entry() with the entry as returned from the ldap_first_entry().



ldap_list() veya ldap_connect() işlevinden dönen LDAP\Connection nesnesi.


LDAP\ResultEntry nesnesi.

Dönen Değerler

Returns an LDAP\ResultEntry instance for the next entry in the result whose entries are being read starting with ldap_first_entry(). If there are no more entries in the result then it returns false.

Sürüm Bilgisi

Sürüm: Açıklama
8.1.0 ldap değiştirgesi artık LDAP\Connection nesnesi kabul ediyor, evvelce LDAP özkaynağı olmalıydı.
8.1.0 girdi değiştirgesi artık LDAP\ResultEntry nesnesi kabul ediyor, evvelce LDAP özkaynağı olmalıydı.
8.1.0 Artık LDAP\Result nesnesi dönüyor; evvelce LDAP özkaynağı dönerdi.

Ayrıca Bakınız

add a note

User Contributed Notes 1 note

me at xbug dot de
7 years ago
This is working for me in php 5.5:

= 'ldap://';
$base_dn = "ou=users,dc=example,dc=com";
$connect = ldap_connect($ldap_host);

$result = ldap_search($connect, $base_dn, "(cn=*)");

$entry = ldap_first_entry($connect, $result);

do {
$dn = ldap_get_dn($connect, $entry);
"DN is $dn\n";
} while (
$entry = ldap_next_entry($connect, $entry));

To Top