The Reds will make the short trip to West Yorkshire in the second round of the Carabao Cup.
Barnsley will face Leeds United at Elland Road in the next round of this season's Carabao Cup competition.
A Yorkshire Derby against Premier League opposition awaits Michael Duff's side after a fine performance on the road at Middlesbrough on Wednesday evening.
The tie against Leeds will be played week commencing August 22, and ticket details will be released in due course.