My connection to our Domain Controllers via LDAP is fine however when I try to connect via LDAPS it fails to bind. I've added the c:\OpenLDAP\sysconf\ldap.conf path and file and tried adding this "TLS_REQCERT never" to that file as several sites have suggested but no luck.
The code I'm using is the same as below modified for my environment
<?php
    $con = @ldap_connect('ldaps://the.ldap.server', 636);
    ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
    ldap_set_option($con, LDAP_OPT_REFERRALS, 0);
    var_dump(@ldap_bind($con, '[email protected]', 'password'));
?>
Just wondering if anyone else has come up against this issue and found a way around it at all?