Hi,

I have been trying this for almost one week but still cannot get my ldaps:// binding working.
I can bind using same information through ldp.exe or LDAP browser but bot my php code.
Weirdly, my binding works using normal ldap (without SSL).
Not sure what's wrong with my code below:

<?php 
$ds=ldap_connect ("ldaps://example.com.my:636"); // assuming the LDAP server is on this host 

if ($ds) { 
    // bind with appropriate dn to give update access 
    $ldapbind = ldap_bind($ds, 'cn=administrator,dc=example,dc=com,dc=my', '******');


    // prepare data 
    $info["cn"]="x"; 
    $info["sn"]="x"; 
    $info["mail"]="x@xxx"; 
    $info["objectclass"]="person"; 


    /*$result = ldap_mod_replace($ds, $ldapbind, $user);
    if ($result) echo "User modified!"; else
             echo "There was a problem!";*/


    ldap_close($ds); 
} else { 
    echo "Unable to connect to LDAP server"; 
} 
?>

Or is this due to setting inside AD?

Appreciate any advices