Former President Mahmoud Ahmadinejad is seen as part of Iran’s hard-line faction.