[turba] Problem with LDAP driver - SOLVED

Edwin Culp eculp@encontacto.net
Mon, 24 Jun 2002 12:30:53 -0700


Quoting Sasa Milic <smilic@EUnet.yu>:

 | 
 | The problem is in PHP4.2.1, it cannot be compiled with openldap
 | support. Error received is:
 | 
 | ldap.c:2030: `tsrm_ls' undeclared (first use in this function)
 | 
 | The problem is that tsrm_ls has never been declared, and since
 | function with the error is not PHP_FUNCTION, tsrm_ls hasn't
 | been declared implicitly. The proper fix is to call TSRMLS_FETCH()
 | just before line 2030 in ldap.c

Hmmm..  Really makes me wonder why I have never had a compile problem.

phpinfo() on 4.2.1 shows:

PHP Version 4.2.1

SystemFreeBSD EnContacto.Net 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sun May 26
05:59:59 PDT 2002 root@EnContacto.Net:/usr/obj/usr/src/sys/PIII733 i386 

Build Date        Jun 2 2002 19:17:55 

Configure Command './configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib'
'--with-mcrypt=/usr/local' '--with-imap=/usr/local' '--with-mysql=/usr/local'
'--with-ldap=/usr/local' '--enable-ftp' '--with-gettext=/usr/local'
'--prefix=/usr/local' 'i386-portbld-freebsd5.0'

I have some investigating to do.

Thanks for the information.

ed


 | 
 | Sasa
 | 
 | 
 | Edwin Culp wrote:
 | > 
 | > Quoting Sasa Milic <smilic@EUnet.yu>:
 | > 
 | >  |
 | >  | Solved !
 | >  |
 | >  | I found a problem in php 4.2.1 ldap library, line 2030 in ldap.c.
 | >  | Bug report sent to php.net.
 | > 
 | >  |
 | >  | Sasa
 | >  |
 | >  | P.S. Am I the only one that uses php 4.2.1 with openldap ?
 | > 
 | > No, I'm running both 4.2.1 and Head (4.3.?) and openldap2.0.23.  It would
 | > be my guess that many of us are running 4.2.1.  Could you share the bug
 | > report?
 | > 
 | > Thanks,
 | > 
 | > ed
 | > 
 | >  |
 | >  |
 | >  |
 | >  | Sasa Milic wrote:
 | >  | >
 | >  | > Hi,
 | >  | > > I've installed Horde 2.0, IMP 3.0, Turba 1.0, and openldap.
 | >  | > I'm able to query exchange address book via ldapsearch.
 | >  | >
 | >  | > I've configured turba to use ldap, but it doesn't work.
 | >  | > All it shows is a black screen. So I started to debug things,
 | >  | > to see what is wrong. Found out that it hangs in lib/Driver/ldap.php,
 | >  | > in constructor of Turba_Driver_ldap class, in line:
 | >  | >
 | >  | >   if (!($this->ds = @ldap_connect($this->server, $this->port))) {
 | >  | >
 | >  | > Obviously, it never finishes ldap_connect call, but why ?!
 | >  |
 | >  | --
 | >  | Turba mailing list
 | >  | Frequently Asked Questions: http://horde.org/faq/
 | >  | To unsubscribe, mail: turba-unsubscribe@lists.horde.org
 | > 
 | > --
 | > 
 | > --
 | > Turba mailing list
 | > Frequently Asked Questions: http://horde.org/faq/
 | > To unsubscribe, mail: turba-unsubscribe@lists.horde.org


--