П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 6339 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 8458 раз(а).

Учебник HTML.
Просмотров 5073 раз(а).

Руководство по PHP5.
Просмотров 2224 раз(а).

Хостинг через призму DNS.
Просмотров 7344 раз(а).

Подборка текстов стандартных документов.
Просмотров 66 раз(а).

Учебник PHP - Самоучитель
Просмотров 5362 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 11541 раз(а).

Внешние атаки...
Просмотров 7784 раз(а).

Учебник PHP.
Просмотров 4470 раз(а).

SSI в примерах.
Просмотров 1339 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

ldap_list

(PHP 3, PHP 4, PHP 5)

ldap_list -- Single-level search

Description

resource ldap_list ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]]]] )

Returns a search result identifier or FALSE on error.

ldap_list() performs the search for a specified filter on the directory with the scope LDAP_SCOPE_ONELEVEL.

LDAP_SCOPE_ONELEVEL means that the search should only return information that is at the level immediately below the base_dn given in the call. (Equivalent to typing "ls" and getting a list of files and folders in the current working directory.)

This call takes 5 optional parameters. See ldap_search() notes.

Замечание: These optional parameters were added in 4.0.2: attrsonly, sizelimit, timelimit, deref.

Пример 1. Produce a list of all organizational units of an organization

// $ds is a valid link identifier for a directory server

$basedn = "o=My Company, c=US";
$justthese = array("ou");

$sr=ldap_list($ds, $basedn, "ou=*", $justthese);

$info = ldap_get_entries($ds, $sr);

for ($i=0; $i<$info["count"]; $i++) {
echo $info[$i]["ou"][0] ;
}

Замечание: From 4.0.5 on it's also possible to do parallel searches. See ldap_search() for details.



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru