Some documentation of using Mongo 2.4 roles

The key part is specifying authSource, so that it always tries to load
auth data from 'admin' (the only database that's allowed to authorize
you for other databases) no matter which database you're trying to
connect to.