Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Fail Feature update required #72

Open
dipenpatel235 opened this issue Jul 11, 2016 · 0 comments
Open

Authentication Fail Feature update required #72

dipenpatel235 opened this issue Jul 11, 2016 · 0 comments

Comments

@dipenpatel235
Copy link

dipenpatel235 commented Jul 11, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant