Edit report at http://bugs.php.net/bug.php?id=52266&edit=1
ID: 52266 Comment by: ceo at l-i-e dot com Reported by: ceo at l-i-e dot com Summary: ldap_search Operations error for SizeLimit > $results['count'] Status: Bogus Type: Bug Package: LDAP related Operating System: Mac OS X PHP Version: 5.3.2 New Comment: A User Contributed note suggested using 2, and I was foolish enough to try it. Other errors later corrected masked the issue at hand, and I thought it was still broken with 0 for AD 2003. I apologize for the noise. Previous Comments: ------------------------------------------------------------------------ [2010-07-08 12:29:16] patrickalla...@php.net Use ldap_set_option($ldapConn, LDAP_OPT_REFERRALS, 0); when connecting to AD server 2003 and searching in the whole AD schema. By the way, '2' is not a valid value for LDAP_OPT_REFERRALS which expect a value of 0 or 1. ------------------------------------------------------------------------ [2010-07-08 12:26:51] patrickalla...@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Use ldap_set_option($ldapConn, LDAP_OPT_REFERRALS, 0); when connecting to AD server 2003 and searching in the whole AD schema. By the way, '2' is not a valid value for LDAP_OPT_REFERRALS which expect a value of 0 or 1. ------------------------------------------------------------------------ [2010-07-08 10:19:13] gra...@php.net According to the contributed notes in http://www.php.net/manual/en/function.ldap- search.php, LDAP_OPT_REFERRALS should be set to 0 and not 2 as you have in your test case. When set to 0 I don't see the "Operations Error" message. I also have it set this way to enable search in AD for a rudimentary phonebook. ------------------------------------------------------------------------ [2010-07-06 18:57:49] ceo at l-i-e dot com The AD version has been confirmed to be 2003. ------------------------------------------------------------------------ [2010-07-06 17:52:44] ceo at l-i-e dot com PS The same searches work fine from ldapsearch command line tool provided by OpenLDAP. Thus, logically, the error must reside in PHP's extension... ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=52266 -- Edit this bug report at http://bugs.php.net/bug.php?id=52266&edit=1