Who can Legally Marry People?

Depending on where you live the rules can be different as far as who is allowed to actually marry people. In general ordained ministers and judges can marry people. If you are at sea I believe the captain can marry people as well.