Re: Re: Can' connect to ldap server

From: Date: Wed, 12 Sep 2001 09:34:10 +0000
Subject: Re: Re: Can' connect to ldap server
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-67026@lists.php.net to get a copy of this message
Hi all together, I modified my 'two lines of code': $andre1; $ds = ldap_connect ("localhost"); print "connect result is ... $andre2; Here are the snipped from the error_log: [12-Sep-2001 11:24:16] PHP Warning: Use of undefined constant andre1 - assumed 'andre1' in /opt/www2.presse-data.de/ld/ldap.php on line 11 It seems to me that php never returns from the ldap_connect function!!! BTW, phpinfo reports: LDAP Support enabled RCS Version $ID:ldap.c,v 1.82.4.2 2001/05/30 21:18:17 rasmus Exp $ Total Links 0/unlimited API Version 2004 Any ideas? Thank you Andre Richard Lynch wrote: > > Check your Apache log for any errors... > > And, it's *possible* PHP was configured to log errors elsewhere as well... > > See php.ini, or write some intentionally broken code to be sure you get > error messages to the browser. > > -- > WARNING richard@zend.com address is an endangered species -- Use > ceo@l-i-e.com > Wanna help me out? Like Music? Buy a CD: > http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > ----- Original Message ----- > From: Andre Konopka <andre.konopka@presse-data.de> > Newsgroups: php.general > To: <php-general@lists.php.net> > Sent: Monday, September 10, 2001 4:18 AM > Subject: Can' connect to ldap server > > > Hi > > > > I compiled PHP_4.0.6 with LDAP support (openldap-2.0.12) without any > > problems, but I can't connect to my locally > > running LDAP-Server. The whole thing is running on a HP-UX11 box. > > > > Here are my very simple two lines of code: > > > > > > $ds=ldap_connect ("localhost"); > > > > print "connect result is ".$ds."<BR>"; > > > > > > If try to show the results I get error popup with > > > > 'Documents contained no data. Try again later, or contact the server's > > administrator.' > > > > > > If I comment out the 'connect' line the browser show the line > > 'connect result is' > > > > I started slapd with debugging level 65535 and I can see that there are > > no connection requests from PHP. > > > > > > Any idea? > > > > Andre > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#67026) next »