PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » Auth » Bug #10125

LDAP fetchData only work for 1 entry

Details

Submitted2007-02-19 15:28 UTC
Frombrunovern dot a at gmail dot com
Assignedaashley
StatusClosed
PackageAuth
PHP Version5.2.1
OSw2k3
Roadmaps1.5.1

Comments

[2007-02-19 15:28 UTC] brunovern dot a at gmail dot com

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

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net 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.