Friday , March 29 2024
Home - Don't Forget! - PHP LDAPS Not Bind/Connecting

PHP LDAPS Not Bind/Connecting

Had a few problems with coding a simple Activie Directory password reset web form.  It appears when coding in PHP the OpenLdap doesn’t trust the connecting Domain Controller’s SSL Certificate issuing CA.

This can be fixed with PHP on either Apache or IIS with a simple file:

Create a file named ‘ldap.conf’ in the directory ‘c:\openldap\sysconf’.  In the file the first line should include ‘TLS_REQCERT never’.

Restart IIS or Apache for the setting to take effect. 

Yes, the file location and file name is weird but it does solve the problem.

Check Also

The pain of TLS 1.2 with PowerShell module for Azure Active Directory (MSOnline)

Building labs in a hurry sometimes can bite you with recent changes in Office 365 …

One comment

  1. very well

    information you write it very clean. I’m very lucky to get this information from you.

Leave a Reply

Your email address will not be published. Required fields are marked *