From:             sujiannming at gmail dot com
Operating system: Linux
PHP version:      4.4.4
PHP Bug Type:     LDAP related
Bug description:  php ldap functions not sending SSLv2 Client Hello

Description:
------------
When connecting to ldaps:// via port 636, the first packet after the TCP
handshake should be a SSLv2 "Client Hello."  At least tracing ldapsearch,
this is the case.  However, with both php 4.3.x, 4.4.4, and php 5.1.x, the
first packet after the TCP handshake seems to be a SSL Continuation Data. 
The result of this is the inability for php to bind to the ldap server.

Reproduce code:
---------------
http://us2.php.net/manual/en/function.ldap-bind.php

Expected result:
----------------
When doing a tcpdump, I "should" see a SSLv2 Client Hello packet destined
for the ldaps server.  Which is what I see when I run the following
ldapsearch command:

ldapsearch -x  -H ldaps://ldap.example.bogus -b dc=example,dc=bogus -D
"uid=nocuser,ou=services,dc=example,dc=bogus" -W uid=some_uid

Actual result:
--------------
I'm actually seeing a SSL Continuation Data packet instead.

-- 
Edit bug report at http://bugs.php.net/?id=39669&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39669&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39669&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39669&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39669&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39669&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39669&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39669&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39669&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39669&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39669&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39669&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39669&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39669&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39669&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39669&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39669&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39669&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39669&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39669&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39669&r=mysqlcfg

Reply via email to