I think I read that the Russians gave Iran and Syria the S300 systems, not their most advanced, but withheld some of the key components and knowhow.
At least that is the excuse they want everyone to believe, so as to not damage arms sales prospects.