Barack Obama actually said...
I don't oppose all wars. What I am opposed to is a dumb war.
Context
Obama Campaign Press Release - On Fifth Anniversary of Speech Opposing Iraq War
10/01/2007
Obama Campaign Press Release - On Fifth Anniversary of Speech Opposing Iraq War