I am running mongo 2.2.2 on osx.
When I do the following authentication is going fine:
$ mongo >> use admin >> db.auth(\"uname\", \"passw
You have to user the --authenticationDatabase to indicate mongodb where to find the user you have created. For example:
--authenticationDatabase
mongo admin -u uname -p 'password' --authenticationDatabase admin