Authenticates to db with the given name and password
@param username name of user for this database
@param passwd password of user for this database
@return the CommandResult from authenticate command
@throws MongoException if authentication failed due to invalid user/pass, or other exceptions like I/O
@dochub authenticate
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.