PHP how to specify ldap.conf location?

后端 未结 3 735
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 04:03

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

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-10 04:53

    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

提交回复
热议问题