ldap_start_tls failure

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

ldap_start_tls failure

Postby kinihepu » 02. February 2008 01:47

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 />";
}


-------------------
kinihepu
 
Posts: 1
Joined: 02. February 2008 01:37

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 92 guests