6.0.0-beta1
7/7/25

[#4207] ldap cfgSource with checksyntax enabled loops forever with queries on replicated ldap server
Summary ldap cfgSource with checksyntax enabled loops forever with queries on replicated ldap server
Queue Turba
Queue Version 2.1.1
Type Bug
State No Feedback
Priority 2. Medium
Owners Horde Developers (at)
Requester glen (at) delfi (dot) ee
Created 07/26/2006 (6921 days ago)
Due
Updated 11/09/2008 (6084 days ago)
Assigned 07/26/2006 (6921 days ago)
Resolved 11/09/2008 (6084 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/09/2008 01:31:04 AM Chuck Hagenbuch State ⇒ No Feedback
 
11/11/2006 04:39:34 PM Jan Schneider Comment #12
State ⇒ Stalled
Reply to this comment
No feedback.
10/26/2006 08:23:01 AM Jan Schneider Comment #11 Reply to this comment
10/25/2006 08:18:52 PM glen (at) delfi (dot) ee Comment #10 Reply to this comment
are there good tools (for linux) that are able to provide trace from php side?
10/05/2006 12:17:03 PM Jan Schneider Comment #9 Reply to this comment
Are you able to provide this information?
08/02/2006 04:02:31 PM Chuck Hagenbuch Comment #8
Assigned to Horde DevelopersHorde Developers
Reply to this comment
I'll try to look at this locally, but it would be very helpful if you 
could do a trace of what's happening on the PHP side, not just the 
LDAP side.
08/02/2006 04:01:29 PM Chuck Hagenbuch Deleted Original Message
 
08/02/2006 04:00:57 PM Chuck Hagenbuch Deleted Original Message
 
07/31/2006 08:42:43 PM glen (at) delfi (dot) ee Comment #7
New Attachment: debug.log Download
Reply to this comment
Can you try this version of the ldap.php driver?
http://cvs.horde.org/co.php?r=1.83&f=turba%2Flib%2FDriver%2Fldap.php
tried. still very slow comparing to checksyntax => false. attached 
complete ldap log.


07/28/2006 04:20:48 AM Chuck Hagenbuch Comment #6 Reply to this comment
Can you try this version of the ldap.php driver?

http://cvs.horde.org/co.php?r=1.83&f=turba%2Flib%2FDriver%2Fldap.php



I don't see any actual loops, just a lot of repeated calls. I added 
caching of syntax lookups so that we only look up every attribute 
once, instead of looking up every attribute whenever it's checked. 
Please let me know how this works for you. I'll merge it to Turba 
2.1.x if it helps.
07/27/2006 12:21:05 PM glen (at) delfi (dot) ee Comment #5
New Attachment: dump.log
Reply to this comment
output from <?

         $fp = fopen("/tmp/dump.log", "a");

         fwrite($fp, print_r($attv, 1));

         fclose($fp)

?>



as i tought just first call to the method isn't causing the loop
07/27/2006 12:09:39 PM glen (at) delfi (dot) ee Comment #4 Reply to this comment
     var_dump($attv);
     exit;
array(9) {

   ["aliases"]=>

   array(1) {

     [0]=>

     string(6) "userid"

   }

   ["oid"]=>

   string(25) "0.9.2342.19200300.100.1.1"

   ["name"]=>

   string(3) "uid"

   ["desc"]=>

   string(24) "RFC1274: user identifier"

   ["equality"]=>

   string(15) "caseIgnoreMatch"

   ["substr"]=>

   string(25) "caseIgnoreSubstringsMatch"

   ["syntax"]=>

   string(34) "1.3.6.1.4.1.1466.115.121.1.15{256}"

   ["max_length"]=>

   string(3) "256"

   ["type"]=>

   string(9) "attribute"

}
07/26/2006 07:55:27 PM Chuck Hagenbuch Comment #3
State ⇒ Feedback
Reply to this comment
Look at _getSyntax() in turba/lib/Driver/ldap.php. Apparently you're 
never getting back something with a 'syntax' attribute. It would be 
helpful if you could replace the recursive call to _getSyntax with:



     var_dump($attv);

     exit;



And let us know what $attv is.
07/26/2006 07:07:56 AM glen (at) delfi (dot) ee Comment #2 Reply to this comment
correction 'checksyntax' => true
07/26/2006 07:06:42 AM glen (at) delfi (dot) ee Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
New Attachment: debug
Queue ⇒ Turba
Summary ⇒ ldap cfgSource with checksyntax enabled loops forever with queries on replicated ldap server
Type ⇒ Bug
Reply to this comment
i've configured $cfgSources['localldap'] with 'checksyntax' => false, 
with 'server' being a ldap server which is replicated using openldap 
syncprov overlday. i had to kill webserver to stop it flooding log.



openldap-2.3.24-1.2.amd64.rpm

php-pear-Net_LDAP-0.6.6-3



and it enters infinitive loop trying to search chemas. sample log attached

Saved Queries