public function read($dn)
	{
		$base = substr($dn, strpos($dn, ',') + 1);
		$cn = substr($dn, 0, strpos($dn, ','));
		$result = @ldap_read($this->resource, $base, $cn);

		if ($result)
		{
			return @ldap_get_entries($this->resource, $result);
		}
		else
		{
			return $result;
		}
	}
public function read($dn)
	{
		$base = substr($dn, strpos($dn, ',') + 1);
		$cn = substr($dn, 0, strpos($dn, ','));
		$result = @ldap_read($this->resource, $base, $cn);

		if ($result)
		{
			return @ldap_get_entries($this->resource, $result);
		}
		else
		{
			return $result;
		}
	}
public function read ( $ dn ) { $ base = substr ( $ dn , strpos ( $ dn , ',' ) + 1 ) ; $ cn = substr ( $ dn , 0 , strpos ( $ dn , ',' ) ) ; $ result = @ ldap_read ( $ this -> resource , $ base , $ cn ) ; if ( $ result ) { return @ ldap_get_entries ( $ this -> resource , $ result ) ; } else { return $ result ; } }
Read all or specified attributes of given dn

@param   string  $dn  The DN of the object you want to read

@return  mixed  array of attributes or -1 on error

@since   1.0
Read all or specified attributes of given dn