#34482 [Opn->Asn]: LDAP Searches cause Access Violation when connecting via LDAPS

From: Date: Mon, 12 Sep 2005 17:41:56 +0000
Subject: #34482 [Opn->Asn]: LDAP Searches cause Access Violation when connecting via LDAPS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84948@lists.php.net to get a copy of this message
 ID:               34482
 Updated by:       sniper@php.net
 Reported By:      zbowden at vt dot edu
-Status:           Open
+Status:           Assigned
 Bug Type:         LDAP related
 Operating System: Windows 2003
 PHP Version:      5CVS-2005-09-12 (snap)
-Assigned To:      
+Assigned To:      edink
 New Comment:

Someone updated some libs..assigned to that someone. :)



Previous Comments:
------------------------------------------------------------------------

[2005-09-12 19:32:27] zbowden at vt dot edu

tried the snapshot .. same results

------------------------------------------------------------------------

[2005-09-12 19:17:02] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2005-09-12 18:49:18] zbowden at vt dot edu

Description:
------------
After moving to 5.0.5 from 5.0.4 I can no longer do ldap searches when
connecting via LDAPS URI -> ldap_connect(ldaps://server.com). I'm only
using Windows 2003/IIS6/ISAPI but it might occur on other platforms. 

Replacing the libeay32.dll and ssleay32.dll with the versions
distributed with 5.0.4 fix the problem. 

On the LDAP Server side I've tested against a Windows 2000 Active
Directory LDAP server and an OpenLDAP server and get the same results.




Reproduce code:
---------------
$host = "ldaps://server.com";
$ldap = ldap_connect($host);
$baseDn = "ou=accounts,dc=com";

// access violation will occur here
$result = ldap_search($ldap, $baseDn, "name=user", array('dn'));

Expected result:
----------------
PHP has encountered an Access Violation at _____



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34482&edit=1


Thread (18 messages)

« previous php.bugs (#84948) next »