Jasmin Handanovic saves Aberdeen striker Adam Rooney's penalty in last year's Europa League
Aberdeen face a trip to either Kazakhstan or Bosnia in the second qualifying round of the Europa League.
The Dons will play either Ordabasy Shymkent, who finished fourth of in the Kazakhstan Premier League last season, or seventh-placed Bosnian side NK Siroki Brijeg.
The first round will be played at home at Pittodrie on July 13 with the second match a week later.
Meanwhile, Rangers will face Progres Niederkorn with the winner going on to play either AEL Limassol or St Josephs.
Aberdeen drawn against FC Ordabasy or NK Široki Brijeg in Europa League qualifying