Re: [PHP3] LDAP problem (php-3.0.6/apache-1.3.4/Digital UNIX)
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP3] LDAP problem (php-3.0.6/apache-1.3.4/Digital UNIX) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-3635@lists.php.net to get a copy of this message | ||
[moved to php-dev list]
> Weird! php gets to:
>
> ldap = ldap_open(host,port);
>
> in ldap.c, and the host and port values look good, however the variable
> ldap is always set to NULL - no errors, problems etc. I tried
> recompiling with no optimisation, and also using the native cc instead
> of gcc but the result is the same.
> I also tried compiling with no options except ldap and debugging, same
> result.
>
> I double checked a C program against the same ldap library, no problems
> at all.
> Tomorrow I'll maybe try recompiling the ldap libs with debugging, see if
> that helps, otherwise I'm a bit lost..
The only thing I can think of is perhaps the DNS lookup is failing for
some reason because of the way PHP is compiled when compared to your test
program. If you test C program calls ldap_open() with exactly the same
arguments and it works, there must be some external thing that is causing
ldap_open() to fail in the PHP case. Have you tried sticking an IP in the
host argument?
-Rasmus
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net