I'm running Xampp on Intel Mac Leopard.
I am trying to get tls to start up using the PHP LDAP function calls. I can connect to LDAP and converse with it, but I can't get the info I need without tls. Problem is that whenever I try to start tls with ldap_start_tls() I get a white screen, no error messages, nothing to tell me why it failed on that line. Code is below.
Any ideas will be most welcome.
K
--------------------
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
$ds=ldap_connect("ldap://server.com", 389);
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($lc, LDAP_OPT_REFERRALS, 0);
echo "connect result is " . $ds . "<br />";
if (!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) {
fatal_error("Failed to set LDAP Protocol version to 3, TLS not supported.");
}
$tls = ldap_start_tls($ds); //fails right here.
if (!ldap_start_tls($ds)) {
echo "Bind result is " . $ds . "<br />";
}
-------------------