-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
Hello...
I have seen u have implement authentication for mongo Database.
But now one more authentication is required inside database we used separate user and credential for collection
So for example right now i have not assign any user/password for database but after that i have set for my one database with collection password.
So i think Need to implement that feature.
See right now compare with php so u have set that user name /password in nginx conf.
$m = new Mongo('mongodb://username:password@localhost/testlogs');
But after that also one authentication required
So that one is db->authenticate line. and in mogo db format it is db.authenticate(user,password)
$conn = new Mongo("mongodb://hello.myhostname.com:27017"); // Connect
$db = $conn->mydb; // Select DB
$db->authenticate('myuser', 'mypwd' );
Thanks
Metadata
Metadata
Assignees
Labels
No labels