[turba] turba/ldap search queries no resuls listing

Derek Yuen derek.yuen at utoronto.ca
Tue Aug 22 10:25:06 PDT 2006


Hello,

Some background info before i start:
imp4.1
horde3.1.1
turba h3-2.1.1
php4.4.2
apache2.2.2
openldap 2.3.24
     on Solaris 8

I'm trying to get global addressbook search (with turba) against my ldap 
server.  But after a login and an attempt to perform a search, 
http://server/horde/turba/search.php (i.e. clicking Addressbook, then 
Search after logging in) returns nothing.

It seems to be dying in the ldap_search() call, but that's standard PHP, 
and that's what test.php is using. The ldap logs on the ldap server show 
that the query is being made and the results are being returned. I've 
tried to change some of the parameters, but it doesn't do any good, and 
those parameters work on an exact same install of imp/horde on our stock 
RedHat Enterprise Linux test server. The only parameter on this solaris 
server that changes the behaviour is 'version'. If it's commented out, 
there's at least the search page presented. If it's uncommented, with 
whatever value, going to http://server/horde/turba/search.php produces a 
blank page.  Another oddity is that our ldap server reports "connection 
lost" when a search is performed:

Aug 20 19:48:07 ldap slapd[556]: [ID 485650 local4.debug] conn=6 
fd=11 closed (connection lost)

But, running http://server/horde/turba/test.php and doing a search query 
works -- results are returned ... and we don't see "connection lost" from 
the linux test server or from the turba test.php page.  And I know our 
ldap server works :-)

Error logs from the debug log of imp/horde/turba:

Aug 20 19:37:44 HORDE [error] [turba] in search.php [on line 18 of
   "/local/webmail/imp4.1/horde/turba/search.php"]

Aug 20 19:37:44 HORDE [error] [turba] in search.php 2 [on line 46 of
   "/local/webmail/imp4.1/horde/turba/search.php"]

Aug 20 19:37:44 HORDE [error] [turba] in search.php 3 [on line 61 of
   "/local/webmail/imp4.1/horde/turba/search.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search 1 [on line 106 of
   "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search 2 [on line 123 of
   "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search 3 [on line 129 of
   "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] LDAP query by
   Turba_Driver_ldap::_search(): user = testuser, root =
   dc=ldaptest,dc=server,dc=com (ldaptest.server.com); filter =
   "(&(cn=*derek*))"; attributes = "dn, uid, cn, mail, givenname, sn";
   sizelimit = 20 [on line 153 of "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search 4 [on line 155 of
   "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search func=ldap_list [on line
   163 of "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search
   root=dc=ldaptest,dc=server,dc=com [on line 165 of
   "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search filter=(&(cn=*derek*))
   [on line 166 of "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

Aug 20 19:37:44 HORDE [notice] [turba] ldap search
   attr=dn,uid,cn,mail,givenname,sn [on line 167 of
   "/local/webmail/imp4.1/horde/turba/lib/Driver/ldap.php"]

I'm not sure what the search.php errors at the top mean.  I did look 
through the code but I don't have enough background to understand what is 
going on yet... (i continue to look at the code now).  When the ldap 
search is performed from the Solaris 8 server via the turba search.php 
page, the ldap server logs indicate that the search result yielded results 
... and the ldap server did attempt to send the results back ...

A minor question: why does turba/search.php attempts to make a
(binding?) connections to the ldap server even before I perform a search ?
   (i noticed this from the logs on the ldap server ...)

I'm lost ... I'm not sure where to go from here.  I've read a lot of the 
postings on the mailing list and have tried some of the suggestions but to 
no avail.  Can anyone offer a suggestion as to where to start or how I can 
go about in solving this problem ?


Many sincere thanks,
-Derek


More information about the turba mailing list