Edit report at http://bugs.php.net/bug.php?id=48866&edit=1
ID: 48866 Comment by: ocala at udistrital dot edu dot co Reported by: dev at lechat dot org Summary: ldap.conf TLS_REQCERT directive fails for ldaps Status: Feedback Type: Bug Package: LDAP related Operating System: win32 only - windows server 2003 PHP Version: 5.3.0 Assigned To: pajoye Block user comment: N Private report: N New Comment: OS: Windows 7 64 Bit. PHP Version 5.3.0 Apache Version 2.2.11 Blunded Like Wamp Wamp installed in C:\wamp Script running in G:\www\test.php LDAP Configuration file in C:\ldap.conf This settings allows a working ldaps:// connection to a Windows 2008 R2 Previous Comments: ------------------------------------------------------------------------ [2011-03-21 14:26:51] lorenz dot ulrich at phz dot ch In my Windows 7 machine with PHP 5.3.1, "TLS_REQCERT never" in a file "C:\ldap.conf" (was C:\openldap\sysconf\ldap.conf for PHP < 5.3) works fine for establishing StartTLS LDAP connections using port 389. ------------------------------------------------------------------------ [2011-01-27 12:10:46] julien dot moisan at agrostar dot fr Same trouble with PHP 5.3.0 with Windows when i move ldap.conf to c:/ that's work fine. ------------------------------------------------------------------------ [2010-11-10 16:53:06] tegwe002 at umn dot edu Based on other people's comments I did a little testing. Here's what I found out. System: PHP 5.3.3 Win32 vc6 x86 Windows server 2008 R2 Enterprise (no service pack) Apache 2.2.15 We too have our web-root (e) on a different drive than the system root (c). Since this machine is in production, I put one copy of the file in each location. I tried without reboot and had no joy. After reboot I was able to connect to ldap over ssl with no errors. Then I did a little testing to see which file was being used. I tried moving the test script between the c: and e: drives. The file must be in the root of the drive that the script is run from. So if you run scripts from more than one drive you'll need to copy the file to the root of each drive. I hope this helps someone else. ------------------------------------------------------------------------ [2010-06-18 09:40:25] paj...@php.net Please try 5.3.3RC1 ------------------------------------------------------------------------ [2010-04-28 10:55:09] paj...@php.net Yes, the bug is not in php itself but in the build of the ldap libraries. It will be fixed in the next release (5.3.3) while being available in the snapshots (I'm working on restoring them as well). The trick is to put it in the root of the current drive, not very clean but it can help to work around this problem. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=48866 -- Edit this bug report at http://bugs.php.net/bug.php?id=48866&edit=1