The Dodgers agreed to terms with infielder Hanser Alberto on a major league contract.