BERLIN (AP) _ A German court ruled today that the assassination of an Iranian opposition figure in Berlin was ordered by the ``highest state levels'' in Tehran.

The judges convicted two men of murder and two others of complicity in the September 1992 killing of Iranian-Kurdish leader Sadiq Sarafkindi and three colleagues.

Presiding Judge Frithjof Kubsch said the men had no personal motive, but were following orders. ``The Iranian political leadership is responsible,'' he said, adding that its goal was to eliminate political dissidents.

The trial had drawn international attention because the court was considering charges that Iranian leaders directed the killings of dissidents abroad.

Washington has sought to isolate Iran on grounds that it sponsored such acts of terror, which Tehran has angrily denied.

Germany and other European Union countries, however, have pursued a policy of ``critical dialogue'' with Tehran the past 4 1/2 years, raising issues of terrorism and human rights while continuing relations and profitable trade.

Officials in Germany, Iran's biggest Western trade partner, have said the policy would be reviewed if the court implicated Iranian leaders in the killings.

Prosecutors contended that Iran's powerful spiritual leader, Ayatollah Ali Khamenei, and Iranian President Hashemi Rafsanjani personally ordered the killings. The allegations, first made last fall, set off days of anti-German street protests in Tehran.

Kubsch said the order for the killing was given by a special revolutionary committee that represented Iran's top political and religious leaders. He did not specifically name them. His statement was met with cheers in the packed courtroom.

``It is proven that there was an official liquidation order,'' he said.

About 600 Iranian dissidents outside the courtroom cheered and danced when they heard the verdict. They called for an end to trade with Iran, carrying signs such as: ``Stop the murderous regime in Iran.''

``There is now absolutely no justification for the continuation of the `critical dialogue' policy and for the appeasement of this regime,'' said Massoud Radjavi, chairman of the National Council of Resistance of Iran.

The judges found Kazem Darabi, an Iranian who worked as a grocer in Berlin, and a Lebanese man, Abbas Rhayel, guilty of murder and sentenced them to life in prison.

Two other Lebanese, Youssef Amin and Mohamed Atris, were convicted of being accessories to murder. Amin was given 11 years and Atris five years and three months.

The fifth defendant, Atallah Ayad, also Lebanese, was acquitted.

Tehran has vigorously denied any involvement in the killings and accused the Germans of seeking to politicize a criminal case.

In reading the three-judge panel's findings, Kubsch noted that Iran's leaders were not on trial and said the court did not want to ``bend to the pressure of public opinion that was seeking a condemnation of Iran.''

German prosecutors initially called the murder a contract killing by the Iranian spy agency. Darabi was known to German authorities as a secret agent with connections to the Iranian consulate in Berlin.

Bernd Schmidbauer, Chancellor Helmut Kohl's intelligence adviser, testified that Iran's intelligence chief sought to block the trial during a 1993 visit to Bonn. In March 1996, prosecutors issued an arrest warrant for him on charges that he ordered the assassinations.

The trial was winding down last summer when former Iranian President Abolhassan Bani-Sadr was called as a witness. He testified that Iranian leaders Khamenei and Rafsanjani had personally ordered the murders.

Prosecutors repeated the accusation in their closing statements last fall, setting off spirited anti-German protests in Iran by religious students who felt Islam and their leaders had been insulted.