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, 03 Oct 2008

view this page in

ldap_first_entry

(PHP 4, PHP 5)

ldap_first_entry最初の結果 ID を返す

説明

resource ldap_first_entry ( resource $link_identifier , resource $result_identifier )

結果内の最初のエントリのエントリ ID を返します。このエントリ ID を ldap_next_entry() に渡し、 結果からそれ以降のエントリを取得します。

LDAP 結果におけるエントリは、ldap_first_entry() および ldap_next_entry() 関数を用いて連続的に 読み込まれます。

パラメータ

link_identifier

ldap_connect() が返す LDAP リンク ID。

result_identifier

返り値

成功時に最初のエントリに関する結果エントリ ID、エラーの場合に FALSE を返します。



add a note add a note User Contributed Notes
ldap_first_entry
eddie at omegaware dot com
08-Aug-2003 02: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, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites