#1 2020-08-25 18:24:15

fabiovip2019
Member
Registered: 2019-03-14
Posts: 76

MongoDB authentication

Hi Ab, I'm trying to work with authentication using mongodb 3.6. I created the users normally, however when he executes GetCursor (Request: TMongoRequest; var Result: TMongoReplyCursor) to try to read my Collections the event returns Query failure. Have you seen this?

Offline

#2 2020-08-26 11:10:29

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: MongoDB authentication

Does the MongoDB sample work when you enable the authentication in the beginning of the sample source ?

Offline

#3 2020-08-26 12:14:04

fabiovip2019
Member
Registered: 2019-03-14
Posts: 76

Re: MongoDB authentication

It doesn't work, I always rely on the examples to start implementing with mormot. I create the user by the same mormot, everything goes ok, so much so that when I connect with mongo compass for that created user it works.Is it something in my sources?

Offline

Board footer

Powered by FluxBB