Bug #73243 [Csd]: Unable to configure trusted CA

From: Date: Sat, 08 Oct 2016 09:16:51 +0000
Subject: Bug #73243 [Csd]: Unable to configure trusted CA
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204549@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73243&edit=1

 ID:                 73243
 Updated by:         ab@php.net
 Reported by:        petr dot maly at remotehost dot cz
 Summary:            Unable to configure trusted CA
 Status:             Closed
 Type:               Bug
 Package:            LDAP related
 Operating System:   Windows 10 x86
 PHP Version:        7.0.11
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

@Petr many thanks for the checks and for sharing your nmakefiles. I prefer makefiles as well, but we
have historically VS solutions for ldap, so they're kept for a while. Probably should migrate
to makefile some day.

To note is, that with vc14 issues with several libs using winsock but retaining POSIX might arise.
There are some new error constants introduced, like EWOULDBLOCK, etc. Some libs emulate POSIX by
using or replacing them instead of WSA* analogues. As result, there might be discrepances in error
codes with winsock functions. That's a subtle change in vc14 which might cause compatibility
bugs with several winsock related code.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2016-10-07 23:03:25] petr dot maly at remotehost dot cz

Of course, it is same problem :-)

------------------------------------------------------------------------
[2016-10-07 22:57:52] cmb@php.net

So I suppose we can close <https://bugs.php.net/70971> as well. :-)

------------------------------------------------------------------------
[2016-10-07 22:48:37] petr dot maly at remotehost dot cz

I have just checked the new binaries and recompiled the extension and it is working :-). Thanks a
lot.
Petr 

PS:
A little bit outdated information about my build: 
I used official openldap sources + windows makefile for VS [1] + few small patches to get working
with the newest VS. I checked your fix and macros of my build and it is same.

[1] https://github.com/mbooth101/openldap

------------------------------------------------------------------------
[2016-10-07 20:56:07] ab@php.net

This issue should be fixed now. I've retagged openldap-2.4.4 with an updated patch. You can
either use it or the prepared binaries

http://windows.php.net/downloads/php-sdk/deps/vc14/x64/openldap-2.4.44-vc14-x64.zip
http://windows.php.net/downloads/php-sdk/deps/vc14/x86/openldap-2.4.44-vc14-x86.zip

The dependency packages will be updated anytime soon.

Thanks.

------------------------------------------------------------------------
[2016-10-06 20:49:08] ab@php.net

Thanks for the additional info and investigation. Now i reproduce this, indeed your snippet works on
PHP5 and doesn't in PHP7. Using ldaps://ldap.telesec.de and "TLS_REQCERT never" in
the ldap.conf

Please tell how you built openldap in the worky variant? Did you enable deprecated symbols? Which
solutions and patches did you use? In the winlibs repo, we use own VS solutions, the patch is
commited in there as well.

Thanks.

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


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

    https://bugs.php.net/bug.php?id=73243


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


Thread (18 messages)

« previous php.bugs (#204549) next »