Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.4

Bug #10125 LDAP fetchData only work for 1 entry
Submitted: 2007-02-19 15:28 UTC
From: brunovern dot a at gmail dot com Assigned: aashley
Status: Closed Package: Auth (version 1.5.0)
PHP Version: 5.2.1 OS: w2k3
Roadmaps: 1.5.1    
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
2007-02-23 00:43 UTC
Bug Type:
From: brunovern dot a at gmail dot com
New email:
PHP Version: Package Version: OS:


 [2007-02-19 15:28 UTC] brunovern dot a at gmail dot com (Bruno Vernay)
Description: ------------ The fetchData function in Auth/container/LDAP.php line 547 contains an obvious error. 547 function fetchData($username, $password) 580 $attributes = $this->options['attributes']; 600 do { 614 if (is_array($attributes) ... 620 if ($attributes = @ldap_get_attributes(... 683 } while ... There is a confusion between the attributes to fetch as defined in the options and the attributes fetched in the LDAP. The test line 614 could be precalculated, since it doesn't change in the "do while".


 [2007-02-23 00:43 UTC] aashley at php dot net (Adam Ashley)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.