What is the longest ban ever imposed in cricket (excluding life bans)? Please provide the offence and the duration of the ban.
Excluding life bans
Gulam Bodi holds the record for longest suspension of 20 years. He was banned in 2012 by CSA for match fixing scandal.
From ESPN Cricinfo article,
Cricket South Africa has banned Gulam Bodi for 20 years from participating in any international or domestic match, or any cricket activity other than anti-corruption programs after he admitted to contriving or attempting to fix matches during the 2015 Ram Slam T20 series.