I have a PHP compiled with ldap support and it is working as expected. Now, I need to do some configuration for SSL/TLS but I have no ldap.conf file.
php -i says it was compiled --with-ldap=/usr so I suppose I should make the ldap.conf file in /usr, but I have no write permission there because of an architectural limitation of the device.
How can I specify the path to ldap.conf for php? Is there an php.ini setting? Maybe a parameter in command line?
See http://de3.php.net/manual/en/function.ldap-connect.php#36156:
The apache web server root directory is the key here, as well as
.ldaprc
.Also see the official ldap man pages:
Under XAMPP on Windows the ldap.conf must be either in the root of the system (c:\ldap.conf, PHP 5.3.3 if I remember correctly) or in C:\openldap\sysconf\ depending on the PHP version. It seems the path is not configurable because hardcoded in the Windows PHP DLLs. See the comments at http://se2.php.net/manual/en/ref.ldap.php