6.0.0-git
2019-04-24

[#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 2006-07-26 (4655 days ago)
Due
Updated 2008-11-09 (3818 days ago)
Assigned 2006-07-26 (4655 days ago)
Resolved 2008-11-09 (3818 days ago)
Milestone
Patch No

History
2008-11-09 01:31:04 Chuck Hagenbuch State ⇒ No Feedback
 
2006-11-11 16:39:34 Jan Schneider Comment #12
State ⇒ Stalled
Reply to this comment
No feedback.
2006-10-25 20:18:52 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?
2006-10-05 12:17:03 Jan Schneider Comment #9 Reply to this comment
Are you able to provide this information?
2006-08-02 16:02:31 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.
2006-08-02 16:01:29 Chuck Hagenbuch Deleted Original Message
 
2006-08-02 16:00:57 Chuck Hagenbuch Deleted Original Message
 
2006-07-31 20:42:43 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.


2006-07-28 04:20:48 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.
2006-07-27 12:21:05 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
2006-07-27 12:09:39 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"

}
2006-07-26 19:55:27 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.
2006-07-26 07:07:56 glen (at) delfi (dot) ee Comment #2 Reply to this comment
correction 'checksyntax' => true
2006-07-26 07:06:42 glen (at) delfi (dot) ee Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ ldap cfgSource with checksyntax enabled loops forever with queries on replicated ldap server
Queue ⇒ Turba
New Attachment: debug
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