take a look at mongoerror
mongo auth