#14355 [Fbk->NoF]: ldap_connect works intermittantly

From: Date: Wed, 31 Jul 2002 05:00:09 +0000
Subject: #14355 [Fbk->NoF]: ldap_connect works intermittantly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15643@lists.php.net to get a copy of this message
ID: 14355 Updated by: php-bugs@lists.php.net Reported By: liamr@umich.edu -Status: Feedback +Status: No Feedback Bug Type: LDAP related Operating System: Solaris 2.6 (SPARC) PHP Version: 4.0.6 New Comment: No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2002-06-29 20:09:29] sniper@php.net Please try this snapshot: http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ [2002-01-09 09:58:31] liamr@umich.edu It looks like ORACLE_HOME needs to be set in order for the Oracle LDAP client to work, which is odd because I rarely need to set it to get the database client working. From what I've seen, LDAP works consistantly if I set ORACLE_HOME in the webserver's startup scripts. I don't know why the openldap stuff wasn't working. I guess the point is moot until I *have* to use openldap (which probably won't happen unless the PHP LDAP code learns how to bind w/ kerberos). ------------------------------------------------------------------------ [2001-12-23 11:41:28] venaas@php.net I'm sorry, I don't have any solutions for you. I guess no one else does either. First of all, have you tried to supply an IP address, so that we can be sure it's not DNS related? Did you try to build with the Oracle 8i LDAP? You can do that with something like --with-ldap=/usr/local/oracle/product/8.1.6 It would be interesting to know whether the problem was still there. If you use OpenLDAP 2.x and very latest PHP snapshot, you can get debugging output by doing ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); at the beginning of your script. Last parameter is a bit mask. If you don't want to use latest PHP, the easiest is to add something like int debug = 7; ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &debug); inside PHP's ldap_connect(). You could also try to add some debugging code in the OpenLDAP library (or use gdb or something). I would then try to add a printf() to the beginning of ldap_init() in libldap/open.c ------------------------------------------------------------------------ [2001-12-10 01:17:38] liamr@umich.edu tried it with php built into apache statically. same problem.. ------------------------------------------------------------------------ [2001-12-06 01:19:33] liamr@umich.edu I just watched the wire w/ tcpdump - there's no communication between the webserver and the LDAP server. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14355 -- Edit this bug report at http://bugs.php.net/?id=14355&edit=1

« previous php.bugs (#15643) next »