Bug #14355: ldap_connect works intermittantly
| From: | liamr at umich dot edu | Date: | Wed, 05 Dec 2001 23:58:29 +0000 |
| Subject: | Bug #14355: ldap_connect works intermittantly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72695@lists.php.net to get a copy of this message | ||
From: liamr@umich.edu
Operating system: Solaris 2.6 (SPARC)
PHP version: 4.0.6
PHP Bug Type: LDAP related
Bug description: ldap_connect works intermittantly
server config - Sun Ultra 2 (dual 300mhz IIs), 768MB RAM,
Solaris 2.6 (SPARC), Apache 1.3.20, PHP 4.0.6 (and 4.0CVS-
12-0-4) configured as DSOs.
I'm trying to build PHP as an apache module w/ support for
LDAP (for use w/ HORDE). PHP builds fine, and apxs is able
to make the .so file, but I regularly get "Unable to
connect to LDAP server". Apache doesn't segfault, and
phpinfo() shows that LDAP support has been built in. There
is no mention of it in my php error log, nor my apache
error log.
My build was fairly complex (including support Oracie 8i,
which I disabled when I found the OpenLDAP / OCI8 / Solaris
threads in the bugs database). I've tried building against
OpenLDAP 1.2.12, 1.2.13, 2.0.18 and the Oracle LDAP library
that ships w/ 8.1.17 (when I added --with-oci8). The most
basic configuration line looks like:
env CC="gcc" \
CFLAGS="-I/usr/local/openldap/include" \
CPPFLAGS="-I/usr/local/openldap/include" \
CXXFLAGS="-I/usr/local/openldap/include" \
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-ldap=/usr/local/openldap
I make distclean between re-configure and re-builds.
I've tried gcc 2.95.2, 2.95.3, and the Sun Workshop (4.2)
version cc. I've had no problem with PHP+LDAP when built
as the CGI. The DSO has been very flakey. I've not tried
building PHP directly into Apache. If the DSO works, it
works until the apache is restarted. I've not kept track,
but I'd say at least 75% of the time after apache is
restarted (or stopped and started), LDAP doesn't work - and
this behavior is consistant with the various LDAP libraries
I've tried.
I wish I could provide more information - is there
additional debugging I can turn on, or maybe add to the C
code?
thanks much
--
Edit bug report at: http://bugs.php.net/?id=14355&edit=1