Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
legacy-1.0.0-rc4, legacy-1.0.0
-
None
Description
I recently added auth to my application.
I got following exception:
Exception's what()=nsToCollectionSubstring: no .
The related code is:
100 mongoPtr_ = new mongo::DBClientConnection();
101 if (!mongoPtr_->connect(mongoHostAndPort, errString))
;
104 if (!mongoPtr_->auth(db, user, pwd, errString))
;
Line 104 throws the exception.
From shell I am able to call auth using the above db, user, pwd:
%mongo
>use EventAuthDatabase
switched to db EventAuthDatabase
> db.auth("eventLoader","12345678")
1
Thanks!
Judy