Fix auth check util for MongoDB 2.6