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

search for in the

ldap_first_reference> <ldap_first_attribute
Last updated: Fri, 22 Aug 2008

view this page in

ldap_first_entry

(PHP 4, PHP 5)

ldap_first_entryDevuelve el identificador del primer resultado

Descripción

resource ldap_first_entry ( resource $identificador_de_conexion , resource $identificador_de_resultado )

Devuelve el identificador de la primera entrada del resultado ó FALSE en caso de error.

Las entradas en un resultado LDAP se leen secuencialmente usando las funciones ldap_first_entry() y ldap_next_entry(). ldap_first_entry() devuelve el identificador de la primera entrada del resultado. Este identificador se pasa a la función lap_next_entry() pata obtener las siguientes entradas del resultado.

Vea también ldap_get_entries().



add a note add a note User Contributed Notes
ldap_first_entry
eddie at omegaware dot com
07-Aug-2003 05:57
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');
}

ldap_first_reference> <ldap_first_attribute
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites