WEll I read it on Obama's site so...............
http://factcheck.barackobama.com/
about 1/4 of the way down, under Response to McCain attack on Iran. His site says he consponsored the bill to do this. I'm not saying its wrong, he's probably right here, but again I'm saying, this is just another situation where he's no different to McCain or any other president. He isn't some peace loving twit, he will take exactly the same action anyone else would take, if those guys need taking out(sounds more and more likely) he'll make the same decision as anyone else.
This idea that he's a free thinking, anti war, peace loving, change bringing candidate is ridiculous. On all the main issues he'll do same as everyone else, all his proposed changes for the future, are literally impossible to bring about, its america, its run by the guys with money, not the guy who could veto bills but won't. IT simply will not matter whose in charge to a large degree. However McCain, in working with the rest of the people in washington rather than flipping them the middle finger, is more likely to be able to add in some small changes for the good along with everything else. Obama just has no chance of that at all.