Expand|Select|Wrap|Line Numbers
- echo "<h3>LDAP query test</h3>";
- echo "Connecting ...";
- $ds=ldap_connect("ldap.berkeley.edu"); // must be a valid LDAP server!
- echo "connect result is ".$ds."<p>";
- if ($ds) {
- echo "Binding ...";
- $r=ldap_bind($ds); // this is an "anonymous" bind, typically
- // read-only access
- echo "Bind result is ".$r."<p>";
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in /home/eric/public_html/academic-senate-test/authenticate/login_action.php on line 26
I can access ldap.berkeley.edu from other ldap browsers just fine. The php code is on a server separate from the ldap directory. Is there a specific way to compile php with ldap so that it knows to access a server that is not local, could this be the problem?
I have googled, found a fair number of people reporting this problem but no answers. I appreciate any advice, thanks!
Eric