Edit report at http://bugs.php.net/bug.php?id=48866&edit=1
ID: 48866
Comment by: lorenz dot ulrich at phz dot ch
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:
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.
Previous Comments:
------------------------------------------------------------------------
[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] pajoye@php.net
Please try 5.3.3RC1
------------------------------------------------------------------------
[2010-04-28 10:55:09] pajoye@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.
------------------------------------------------------------------------
[2010-04-28 10:52:57] dietrich dot m dot 3 at pg dot com
correction to my last comment: placing the ldap.conf into the root
folder of the drive where my Apache Installation is located did work.
Note: HTROOT is on another drive. It might be bound to Server_Root ??
------------------------------------------------------------------------
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