MongoDB Auth, can be authenticated in the shell but not via the command line

Maybe I'm wrong but the correct form is like this:

mongo --port 27017 -u manager -p 12345678 --authenticationDatabase admin

You can read about this in mongo documentation:

http://docs.mongodb.org/manual/tutorial/add-user-to-database/


The issue was resolved by removing any symbols. It appears that despite quotes [single or double] would cause the incoming password to be invalid.