From:             
Operating system: Mac OS X
PHP version:      5.3.2
Package:          LDAP related
Bug Type:         Bug
Bug description:ldap_search Operations error for SizeLimit > $results['count']

Description:
------------
NOTE:

***

It's actually PHP 5.3.1, from mac ports. Sorry.

But I don't find anything related in bug searching, nor in the ChangeLog
for 5.3.2, so pretty sure it's still active bug.

***



Attempting to work with Active Directory via OpenLDAP/PHP.



Search for '(cn=*)' works fine.

Search for '(cn=*ynch)' fails with ldap_search: Search: Operations error



Further analysis reveals that providing the fourth parameter, SizeLimit,
which is equal to or less than the number of results, works fine.  Larger
numbers fail, in the same way as no limit.



Of course, one doesn't generally know how many results are in there, so
this is not really a good work-around...



I believe the AD server is 2003 version, but it could be newer.



The AD server is reputed to have 50,000 entries in it, which may be
relevant.



Test script:
---------------
http://6112northwolcott.com/ldap/ldap.phps

Expected result:
----------------
I expect it to give me 16 results, no matter what number I put for the
fourth parameter, or for none at all.



Actual result:
--------------
http://6112northwolcott.com/ldap/ldap.txt

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52266&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52266&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52266&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52266&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52266&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52266&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52266&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52266&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52266&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52266&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52266&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52266&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52266&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52266&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52266&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52266&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52266&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52266&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52266&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52266&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52266&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52266&r=mysqlcfg

Reply via email to