Elsewhere in the draw, highly-fancied Barcelona will play either Beitar Jerusalem or Wisla Krakow and Italian giants Juventus face Tampere United or Artmedia Bratislava.
All had not looked well when Celtic failed to qualify for the Champions League group stages, just failing to recover after a 5-0 defeat away to Artmedia Bratislava.
Qualification was only confirmed when news filtered through from Slovakia that Artmedia Brastislava and Porto had drawn 0-0 when a victory for the home side would have taken them above Rangers.