joomla/joomla-platform — pull request #712 by pasamio (2012-01-06 19:02:29+00:00)
Title: Updating JLDAP::search to return only requested attributes

This pull request adds the ability to specify a list of attributes when performing a JLDAP::search.

$ldap->search('(uid=pasamio)', 'DC=joomla,DC=org', array('givenName', 'sn', 'mail'));

This will return the givenName, sn, mail and DN attributes. DN is always included. Specifying no attributes will return all attributes by default (current behaviour).