According to On the Issues Obama...
Voted NO on constitutional ban of same-sex marriage. (Jun 2006)
From Obama's Senate Site...
In answer to another question, Obama said he opposed an amendment to ban gay marriage because the Constitution historically has expanded, rather than taken away, people's rights.