But Mr. Dean acknowledged his party will need to work with the president on Iraq .