From: robert_thompson at ml dot com Operating system: Win2000 PHP version: 4.3.5 PHP Bug Type: Unknown/Other Function Bug description: LDAP extensions not working correctly
Description: ------------ I have tried for two days every possibility to get a simple LDAP query to return anything. I have copied and tried some 50 different scripts. I can't get anything to come back. Reproduce code: --------------- $ldaphost="myserver"; $ldapport=389; $ldapconn=ldap_connect($ldaphost, $ldapport); $bind=ldap_bind($ldapconn); echo "Bind result is ".$r." -- blank is good<p>"; $dn="OU=Support,dc=win,dc=com"; $filter="(|(sn=a*)(givenname=a*))"; $justthese = array( "ou", "sn", "givenname", "mail"); $result=ldap_search($ldapconn, $dn, $filter, $justthese); echo ldap_error($result); Expected result: ---------------- Anything Actual result: -------------- I get nothing back. -- Edit bug report at http://bugs.php.net/?id=27794&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27794&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27794&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27794&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27794&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27794&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27794&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27794&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27794&r=support Expected behavior: http://bugs.php.net/fix.php?id=27794&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27794&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27794&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27794&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27794&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27794&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27794&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27794&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27794&r=float