PHP how to specify ldap.conf location?

后端 未结 3 733
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  清酒与你
    2021-02-10 05:04

    For XAMPP on Windows, the path is C:\openldap\sysconf\ldap.conf and place these two lines in the ldap.conf file:

    TLS_REQCERT never
    
    TLS_CACERT {full_path_to_pem_file}\pem_file.pem
    

    Restart web server and it worked for me.

提交回复
热议问题