Why does MondoDB respond «Authentication failed» on a correct `db.auth` call?

02

It is because the authentication database is not selected.
Use:

use admin;
db.auth("...", "...");