kernel/lib/Ldap.php
public function getEntries($rResultIdentifier, array $aAttributes) : array
	{
		$aEntries = ldap_get_entries($this->_rConnect, $rResultIdentifier);

		$aMask = array_flip($aAttributes);

		$aResultSet = array();

		for ($i = 0, $count = $aEntries['count']; $i < $count; ++$i) {
		    
			$aResultSet[$i] = array_intersect_key($aEntries[$i], $aMask);

			foreach($aResultSet[$i] as &$aValues) {
			    
				unset($aValues['count']);
			}
		}

		return $aResultSet;
	}
public function getEntries($rResultIdentifier, array $aAttributes) : array
	{
		$aEntries = ldap_get_entries($this->_rConnect, $rResultIdentifier);

		$aMask = array_flip($aAttributes);

		$aResultSet = array();

		for ($i = 0, $count = $aEntries['count']; $i < $count; ++$i) {
		    
			$aResultSet[$i] = array_intersect_key($aEntries[$i], $aMask);

			foreach($aResultSet[$i] as &$aValues) {
			    
				unset($aValues['count']);
			}
		}

		return $aResultSet;
	}
get in Ldap

@access public
@param  resource $rResultIdentifier
@param  array $aAttributes
@return array