Re: Debugging LDAP_connect problems

From: Date: Fri, 19 Jul 2002 00:27:02 +0000
Subject: Re: Debugging LDAP_connect problems
Groups: php.general 
Request: Send a blank email to php-general+get-108393@lists.php.net to get a copy of this message
>I'm trying to connect to a server using ldap_connect. The connection is >failing, but I'm not sure why. When I try to use ldap_error() to narrow >down the problem, I get a messaging saying "... 0 is not a LDAP link >index at ...." I'm not sure what other options I have. Any suggestions >would be apprecieated. ldap_error() tells PHP to use the LDAP connection to talk to the LDAP server to ask it what went wrong. You never got a connection in the first place, so it's a bit of a chicken and egg problem... If you turn on track_errors, you *MIGHT* find something useful in $php_errormsg (?) What message do you get from the connection failure, if any? Can you use any other tools on the same computer to connect to LDAP? Can PHP connect to some other publid LDAP server somewhere as a test case? -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#108393) next »