-
Notifications
You must be signed in to change notification settings - Fork 13
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
specifiy authentication database different to database #19
Comments
You can add more than one instance of the bundle, to configure it for multiple databases. For example, your configuration could be like this:
and then you would create two bundles in your service like this:
Does that answer your question? |
Hi Thanks! We configure our Mongo Database User in the Mongo System Database BUT in this case the MongoClient needs the information about the authenticationDatabase. See following command
Or in Java
http://mongodb.github.io/mongo-java-driver/3.0/driver/reference/connecting/authenticating/ But we can not configure the Database for data and a different database for Users (like admin) How does you enable authentication on MongoDB side? Does you store the user in the specific Data-Database? |
After reading the link, I think I understand the issue now. This library does not support that currently, but PRs are welcome. You would need to add
|
Thanks. |
Hi,
create Job!!
But we need the possibility to change the authentication database. E.g.
The users are managed in database 'admin' and the data are stored in db 'myData'.
Is it possible to configure 2 database: one for Data and one for authSource=db1
Thanks!!
The text was updated successfully, but these errors were encountered: