#27794 [NEW]: LDAP extensions not working correctly
| From: | robert_thompson at ml dot com | Date: | Wed, 31 Mar 2004 10:42:58 +0000 |
| Subject: | #27794 [NEW]: LDAP extensions not working correctly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-57200@lists.php.net to get a copy of this message | ||
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