Jump to content

cannot contact ldaps server


figo2476

Recommended Posts


$ldap_url = "ldaps://example.com";
$ldap_port = 636;
$ldap_conn = ldap_connect($ldap_url, $ldap_port);
echo "ldap_conn: $ldap_conn\n";

$base_dn = "ou=something,o=something";
$filter = "(&(something=*)(something=staff))";
$ldap_search_res = ldap_search($ldap_conn, $base_dn, $filter);

ldap_close($ldap_conn);

 

I run this on my ubuntu, but it says "cannot connect to ldap server".

I have a perl script doing exactly the same thing, but it works.

I suspect it may be this --> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560161 (The workaround doesn't work for me)

 

Link to comment
https://forums.phpfreaks.com/topic/210026-cannot-contact-ldaps-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.