|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-15 15:20 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 04:00:01 2025 UTC |
Description: ------------ I have called ldap_search with the optional time limit parameter set to 0 (documented as no limit) and I get this warning and no results. The time limit parameter is #6. PHP Warning: ldap_search(): Search: Time limit exceeded in /exports/httpd_intra/ldap_test.php I am connecting to an active directory tree. When I first started working on the search limit on Active Directory was timing out and I was getting only a sub set of the results. Since I had the search limit incresed I have started to get this warning. My work arround is to set the timeout to a very long time and all of the results are returned. But if time limit is set to 0 about half the times i get the warning and no results returned. Reproduce code: --------------- ini_set('max_execution_time',20000); $conn = ldap_connect ("ldap://$url:3268"); $filter = '(ObjectClass=*)'; $base_dn = 'DC=foo,DC=bar'; echo "<BR>ldap bind: ". (ldap_bind($conn,$user_dn,$pass) ? ' goooooooood':'bad' $sr = ldap_search($conn, $base_dn,$filter,array(),0,0,0); $info = ldap_get_entries($conn, $sr); print_r($info); Expected result: ---------------- to see gooooooooood printed at the top of the page and then the text of 53000 entries. Actual result: -------------- <BR>ldap bind: goooooooood PHP Warning: ldap_search(): Search: Time limit exceeded in /exports/httpd_intra/ldap_test.php on line 82 PHP Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in /exports/httpd_intra/ldap_test.php on line 90