#35610 [NEW]: Too many certificates give timeout in ldap_bind when using ldaps
| From: | newslettersforjml at exrei dot fi | Date: | Fri, 09 Dec 2005 05:56:50 +0000 |
| Subject: | #35610 [NEW]: Too many certificates give timeout in ldap_bind when using ldaps | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-90151@lists.php.net to get a copy of this message | ||
From: newslettersforjml at exrei dot fi
Operating system: Linux 2.6.8
PHP version: 4.4.1
PHP Bug Type: Performance problem
Bug description: Too many certificates give timeout in ldap_bind when using ldaps
Description:
------------
If you have lots of certificates in certs dir (from where php checks
certs) ldap_bind gives timeout.
Test system was P III 733MHz with 256MB ram. I tried with perl and
ldapsearch and bind worked just fine with all certs in place. When one
uses Debian Sarge and installs ca-certificates it installs about 60-75
certs. Before removing these certs I got timeout, after removing I got
success.
I tested ldap_bind against MS 2003 server AD.
Reproduce code:
---------------
$auth_user = "AD\\user";
$passwd = "pwd";
$connect=ldap_connect("ldaps://192.168.1.1");
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);
$bind=ldap_bind($connect, $auth_user, $passwd);
print "<br>";
print ldap_error($connect);
print "<br>";
Expected result:
----------------
<br>Success<br>
Actual result:
--------------
Timeout
--
Edit bug report at http://bugs.php.net/?id=35610&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35610&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35610&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35610&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35610&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35610&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35610&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35610&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35610&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35610&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35610&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35610&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35610&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35610&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35610&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35610&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35610&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35610&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35610&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35610&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35610&r=mysqlcfg