Doc #70971 [Com]: LDAP Not Reading Config File (ldap.cfg)

From: Date: Thu, 10 Mar 2016 16:04:28 +0000
Subject: Doc #70971 [Com]: LDAP Not Reading Config File (ldap.cfg)
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13258@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70971&edit=1 ID: 70971 Comment by: alain dot vicet1 at bell dot ca Reported by: jspringe at gmail dot com Summary: LDAP Not Reading Config File (ldap.cfg) Status: Re-Opened Type: Documentation Problem Package: LDAP related Operating System: Windows (7/8/10) PHP Version: 7.0.0RC7 Block user comment: N Private report: N New Comment: I've the same problem with Linux and xampp (xampp-linux-x64-7.0.2-1) and don't have any solution. I've tried to export LDACONF before starting lampp withou success: export LDAPCONF=/opt/lampp/etc/openldap/ldap.conf sudo ./lampp start I've tried too, change /etc/ldap/ldap.conf file whitout success: "TLS_REQCERT never" is not taken into account Works ok with previous version of xampp (with php5) Previous Comments: ------------------------------------------------------------------------ [2015-12-10 14:21:25] ab@php.net If you're willing to contribute to the documentation, please visit http://doc.php.net/ for more details. You also can submit a patch over https://edit.php.net/ . Thanks. ------------------------------------------------------------------------ [2015-12-09 23:46:37] jspringe at gmail dot com How can I help? ------------------------------------------------------------------------ [2015-12-09 11:29:23] ab@php.net @jspringe, thanks for the further investigation. If it's a change in the OpenLDAP version, it would make sense to document it. Thanks. ------------------------------------------------------------------------ [2015-12-04 14:41:18] jspringe at gmail dot com After looking over the source for this extension and the source for OpenLDAP itself I've found what needs to be done in Windows - I'm not how this translates to Linux. You need to set an environment variable of LDAPCONF that is equal to the path and filename of your configuration. In previous versions the extension would assume C:\openldap\sysconf\ldap.conf. ------------------------------------------------------------------------ [2015-11-26 14:33:18] jspringe at gmail dot com I removed the config file completely and the error triggered on 5.5.30, so it's definitely reading it in previous versions. I'm fully aware that the error I'm getting is a certificate problem. Which is why I used the directive TLS_REQCERT never. In 5.5.30 you would use the config file to add certs as well - so again - what am I suppose to do in PHP7 when I need an SSL/TLS connection? ------------------------------------------------------------------------ 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=70971 -- Edit this bug report at https://bugs.php.net/bug.php?id=70971&edit=1

« previous php.doc.bugs (#13258) next »