If you want to use ldaps on windows but you don't want to validate the tls certificate try the following line before the ldap_connect call:
putenv('LDAPTLS_REQCERT=never') or die('Failed to setup the env');
If you want to use ldaps on windows but you don't want to validate the tls certificate try the following line before the ldap_connect call:
putenv('LDAPTLS_REQCERT=never') or die('Failed to setup the env');