Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am using Talend Big Data 6.4 and MongoDB 3.4.
Is there a way to retrieve data from database other than the authentification one.
The username that I have needs to connect through the admin database. And data I need to retrieve is in another one.
In my db connection in metadata, I get an error when I leave the database field as blank.
The error I get is :
{ "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}
But when I connect to the serverr with my username through mongo shell, I can execute this command on admin database:
db.adminCommand( { listDatabases: 1 } )
PS. I can connect when I set admin as database in connection creation form.
Thanks in advance,
Nader
Hello,
You need have the correct rights when using MongoDB with authentication.
We have a similiar jira issue here:https://jira.talendforge.org/browse/TBD-3405 and it has been set as "Is not a Bug ".
Best regards
Sabrina