downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ldap_first_reference> <ldap_first_attribute
[edit] Last updated: Fri, 17 May 2013

view this page in

ldap_first_entry

(PHP 4, PHP 5)

ldap_first_entryDevolver el primer resultado de identificación

Descripción

resource ldap_first_entry ( resource $link_identifier , resource $result_identifier )

Devuelve el identificador de entrada para la primera entrada en el resultado. Este identificador de entrada se provee a la rutina ldap_next_entry() para obtener entradas sucesivas a partir del resultado.

Las entradas en el resultado de LDAP son leídas secuencialmente utilizando las funciones ldap_first_entry() y ldap_next_entry().

Parámetros

link_identifier

Un enlace identificador de LDAP, devuelto por ldap_connect().

result_identifier

Valores devueltos

Devuelve el identificador de la entrada de resultados para la primera entrada en caso de éxito, y FALSE en caso de error.

Ver también



add a note add a note User Contributed Notes ldap_first_entry - [1 notes]
up
-1
eddie at omegaware dot com
9 years ago
Here's a nice way to user ldap_first_entry,ldap_next_entry.

$res = ldap_search($ldapc,$searchroot,$filter,$attributes);
for ($entryID=ldap_first_entry($ldapc,$res);
            $entryID!=false;
            $entryID=ldap_next_entry($ldapc,$entryID))
{
// Do stuff with the $entryID.
$values = ldap_get_values($ldapc,$entryID,'uid');
}

 
show source | credits | stats | sitemap | contact | advertising | mirror sites